aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorNils <9465658+nlueb@users.noreply.github.com>2020-12-21 20:03:50 +0100
committerGitHub <noreply@github.com>2020-12-21 20:03:50 +0100
commitaa3b17d04a81b0430dc842b904d6bb1f046ad749 (patch)
tree84a8e7279ff2ab52b005d1bbbdf3010a4c22e09b /runtime/lua/vim/lsp/handlers.lua
parentf15441be4b6697a4917f5edd99d403d5c953e66c (diff)
downloadrneovim-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/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index f1dd9ef5a1..a3bf61ba0b 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -60,7 +60,7 @@ local function progress_callback(_, _, params, client_id)
table.insert(client.messages, {content = val, show_once = true, shown = 0})
end
- vim.api.nvim_command("doautocmd User LspProgressUpdate")
+ vim.api.nvim_command("doautocmd <nomodeline> User LspProgressUpdate")
end
M['$/progress'] = progress_callback