aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2023-07-24 08:58:59 -0700
committerGitHub <noreply@github.com>2023-07-24 08:58:59 -0700
commitadd7e106d59b8e3822310846a850b3ed3fb5db0e (patch)
tree15d25acfa4a346fc333f8de218aa31f3e995ac07 /runtime/lua/vim/lsp/util.lua
parent6a486c44e66f05ae11137ad7a192b89989192566 (diff)
downloadrneovim-add7e106d59b8e3822310846a850b3ed3fb5db0e.tar.gz
rneovim-add7e106d59b8e3822310846a850b3ed3fb5db0e.tar.bz2
rneovim-add7e106d59b8e3822310846a850b3ed3fb5db0e.zip
fix(lsp): noisy warning about offset_encodings #24441
In the case you hit this warning in a buffer (like with C++ and clangd), this message potentially fires over and over again making it difficult to use the editor at all.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 0b06d2bbb5..4ff420cf48 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -2026,7 +2026,7 @@ function M._get_offset_encoding(bufnr)
if not offset_encoding then
offset_encoding = this_offset_encoding
elseif offset_encoding ~= this_offset_encoding then
- vim.notify(
+ vim.notify_once(
'warning: multiple different client offset_encodings detected for buffer, this is not supported yet',
vim.log.levels.WARN
)