New answers tagged

1 vote

How does <cword> work in insert mode?

<cword> is mostly a command-line mode thing, not an insert mode thing. I don't think it is reliable in this context. Here is how I would approach the initial problem: augroup Foo autocmd! ...
romainl's user avatar
  • 37.2k
0 votes

neovim how to keep the diagnostic message in insert mode?

Try using this config. vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { -- delay update diagnostics update_in_insert ...
jamesblackshaw22's user avatar

Top 50 recent answers are included