mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
lsp: Add <nomodeline> to doautocmd calls (#13576)
When using "au User LspDiagnosticsChanged redrawstatus!", modelines get processed again (see h: doautocmd). Fortunately this can be suppressed using the <nomodeline> flag. this replaces every doautocmd call, that issues a User command, with doautocmd <nomodeline>.
This commit is contained in:
@@ -1063,7 +1063,7 @@ function M.display(diagnostics, bufnr, client_id, config)
|
||||
M.set_signs(diagnostics, bufnr, client_id, nil, signs_opts)
|
||||
end
|
||||
|
||||
vim.api.nvim_command("doautocmd User LspDiagnosticsChanged")
|
||||
vim.api.nvim_command("doautocmd <nomodeline> User LspDiagnosticsChanged")
|
||||
end
|
||||
-- }}}
|
||||
-- Diagnostic User Functions {{{
|
||||
|
Reference in New Issue
Block a user