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:
Nils
2020-12-21 20:03:50 +01:00
committed by GitHub
parent f15441be4b
commit aa3b17d04a
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {{{