fix nvim: lsp/init.lua position_encoding param is required in vim.lsp.util.make_position_params. Defaulting to position encoding of the first client.
This commit is contained in:
parent
d7b9265bf8
commit
7ef8a4275d
@ -7,10 +7,10 @@ require("lsp.config.cmp")
|
|||||||
-- position_encoding param is required in vim.lsp.util.make_position_params. Defaulting to position encoding of the first client.
|
-- position_encoding param is required in vim.lsp.util.make_position_params. Defaulting to position encoding of the first client.
|
||||||
-- 目前無法處理,需要等待大多數來自 plugin 尚未更新以配合 Neovim 0.10+的套件修正,先手動抑制
|
-- 目前無法處理,需要等待大多數來自 plugin 尚未更新以配合 Neovim 0.10+的套件修正,先手動抑制
|
||||||
-- 臨時抑制這類 LSP 訊息
|
-- 臨時抑制這類 LSP 訊息
|
||||||
vim.notify = function(msg, log_level, _)
|
-- vim.notify = function(msg, log_level, _)
|
||||||
if msg:match("position_encoding param is required") then
|
-- if msg:match("position_encoding param is required") then
|
||||||
return
|
-- return
|
||||||
end
|
-- end
|
||||||
vim.api.nvim_notify(msg, log_level, {})
|
-- vim.api.nvim_notify(msg, log_level, {})
|
||||||
end
|
-- end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user