diff options
author | Nils <9465658+nlueb@users.noreply.github.com> | 2020-12-21 20:03:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 20:03:50 +0100 |
commit | aa3b17d04a81b0430dc842b904d6bb1f046ad749 (patch) | |
tree | 84a8e7279ff2ab52b005d1bbbdf3010a4c22e09b /runtime/lua/vim/lsp/diagnostic.lua | |
parent | f15441be4b6697a4917f5edd99d403d5c953e66c (diff) | |
download | rneovim-aa3b17d04a81b0430dc842b904d6bb1f046ad749.tar.gz rneovim-aa3b17d04a81b0430dc842b904d6bb1f046ad749.tar.bz2 rneovim-aa3b17d04a81b0430dc842b904d6bb1f046ad749.zip |
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>.
Diffstat (limited to 'runtime/lua/vim/lsp/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/lsp/diagnostic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua index efca5b53af..c98fde3696 100644 --- a/runtime/lua/vim/lsp/diagnostic.lua +++ b/runtime/lua/vim/lsp/diagnostic.lua @@ -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 {{{ |