mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
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.
This commit is contained in:
parent
6a486c44e6
commit
add7e106d5
@ -2026,7 +2026,7 @@ function M._get_offset_encoding(bufnr)
|
|||||||
if not offset_encoding then
|
if not offset_encoding then
|
||||||
offset_encoding = this_offset_encoding
|
offset_encoding = this_offset_encoding
|
||||||
elseif offset_encoding ~= this_offset_encoding then
|
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',
|
'warning: multiple different client offset_encodings detected for buffer, this is not supported yet',
|
||||||
vim.log.levels.WARN
|
vim.log.levels.WARN
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user