Skip to content

Commit

Permalink
fix: lsp methods
Browse files Browse the repository at this point in the history
fix #708
  • Loading branch information
lukas-reineke committed Oct 6, 2023
1 parent 84022cc commit 877c1db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ibl/inlay_hints.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ end

M.setup = function()
if not handler then
handler = vim.lsp.handlers[vim.lsp.protocol.Methods.textDocument_inlayHint]
handler = vim.lsp.handlers["textDocument/inlayHint"]

vim.lsp.handlers[vim.lsp.protocol.Methods.textDocument_inlayHint] = function(err, result, ctx, conf)
vim.lsp.handlers["textDocument/inlayHint"] = function(err, result, ctx, conf)
if handler then
handler(err, result, ctx, conf)
end
Expand All @@ -52,7 +52,7 @@ end

M.clear = function()
if handler then
vim.lsp.handlers[vim.lsp.protocol.Methods.textDocument_inlayHint] = handler
vim.lsp.handlers["textDocument/inlayHint"] = handler
handler = nil
end
for bufnr, _ in pairs(buffer_state) do
Expand Down

0 comments on commit 877c1db

Please sign in to comment.