Replies: 1 comment
-
It turns out the solution is to only - vim.api.nvim_create_autocmd({'BufEnter'}, {pattern = '*', command = 'set nocursorline'})
+ vim.api.nvim_create_autocmd({'BufEnter'}, {pattern = '?', command = 'set nocursorline'}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I like to have
cursorline
set when I'm in insert mode, and I like to havenocursorline
when I'm in normal mode.To accomplish this, I have the following autocommands:
However, when I use
coc-references
, it pops up a temporary buffer and triggers theBufEnter
event. Then when I try to scroll through the references with j and k I get lost because ofnocursorline
.Anyone have an idea for how I can enable
cursorline
in thecoc-references
window while still disabling it in general in normal mode for my regular buffers? If I remove theBufEnter
mapping and just rely onInsertLeave
, then I get issues where I jump to one of the references and I'm in normal mode withcursorline
set, which is not what I want.Beta Was this translation helpful? Give feedback.
All reactions