airblade/vim-highline

nvim support?

artfulrobot opened this issue ยท 9 comments

I'm on nvim 0.6.1 and have installed this with Plug but nothing happens when I do <Leader>-h.

Is this because nvim != vim and nvim is not supported?

Thanks, it looks like a useful plugin.

It works with both vim and nvim.

Did you set up the <Leader>h maps suggested in the readme?

If you did, what does :verbose nmap <Leader>h print?

Yeah, doesn't work for me on nvim either. Prints n ,h <Plug>(HighlightToggle) in response to :verbose nmap <Leader>h.

It should map to <Plug>(HighlineToggle) ("line" not "light").

I'm using

...
Plug 'airblade/vim-highline'
...
nmap <Leader>h <Plug>(HighlineToggle)
xmap <Leader>h <Plug>(HighlineToggle)
nmap <Leader>H <Plug>(HighlineClear)
highlight link Highline Pmenu
highlight Highline guibg=#ff4444

(Have tried various combinations of highlight ... lines)

And :verbose nmap <Leader>h gives:

n  \h            <Plug>(HighlineToggle)                                                                                                                                             
        Last set from ~/.config/nvim/init.vim line 541

With nvim 0.7.0. Pressing leader-h does nothing.

Oh, my mistake, the plugin currently uses vim's text properties which neovim doesn't have. I'll update the code to use the neovim equivalent on neovim.

excellent, it works, thanks.

Works for me too now, very cool, thanks! :)

Unfortunately on NeoVim the syntax highlighting doesn't show through the highlight. Reading the docs on nvim_buf_set_extmark(), hopefully the hl_mode will support this in future.

Yeah, I suppose that would be nice, but this works plenty well enough for me as is :)