unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.42k stars 54 forks source link

disable quickscope highlighting for floating window #50

Closed alexlai97 closed 4 years ago

alexlai97 commented 4 years ago

screenshot-2019-09-27@22 22 35

I am using coc.nvim with neovim 0.4.2. The floating window in the picture has quickscope lightlight enabled for the first line. Even I did :QuickscopeToggle, the highlight is still there. I am not sure where the problem is.

Avi-D-coder commented 4 years ago

Do you have let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] in your vimrc?

alexlai97 commented 4 years ago

Do you have let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] in your vimrc?

Yes.

webdavis commented 4 years ago

Create a file called cocactions.vim in the ftplugin directory, so ~/.vim/ftplugin/cocactions.vim and put the following in it:

let b:qs_local_disable = 1

Works for me using Neovim (nvim --version):

NVIM v0.5.0-397-g96059d72e
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
webdavis commented 4 years ago

Not sure about how to solve for regular floating windows, as they don't have a filetype. They are the buffer type nofile. That might be a way to solve.

webdavis commented 4 years ago

@alexlai97 add the following to your vimrc if you're using coc.nvim:

" This works for the floating window created by the `coc-actions` extension, as well.
let g:qs_buftype_blacklist = ['nofile']