diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index 517ce75..78859c3 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -16,7 +16,10 @@ local peek_definition = function() end local inlay_hint_toggle = function() - vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) + local filter = { bufnr = 0 } + local enabled = vim.lsp.inlay_hint.is_enabled(filter) + + vim.lsp.inlay_hint.enable(not enabled, filter) end _G.InlayHintToggle = inlay_hint_toggle