nvim: lsp: Inlay hints API has changed
This commit is contained in:
parent
d1ab3d43d6
commit
5623d7c004
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ local peek_definition = function()
|
|||
end
|
||||
|
||||
local inlay_hint_toggle = function()
|
||||
vim.lsp.inlay_hint.enable(nil, not vim.lsp.inlay_hint.is_enabled())
|
||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
|
||||
end
|
||||
|
||||
_G.InlayHintToggle = inlay_hint_toggle
|
||||
|
@ -242,7 +242,7 @@ local on_attach = function(client, bufnr)
|
|||
end
|
||||
|
||||
if client.supports_method('textDocument/inlayHint') then
|
||||
vim.lsp.inlay_hint.enable(bufnr, false)
|
||||
vim.lsp.inlay_hint.enable(false)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue