Skip to content

Commit 93e4be8

Browse files
committed
fix(keymap.helper): toggle inlay hints correctly
1 parent a1b138b commit 93e4be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/keymap/helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _G._telescope_collections = function(picker_type)
4545
end
4646

4747
_G._toggle_inlayhint = function()
48-
local is_enabled = vim.lsp.inlay_hint.is_enabled()
48+
local is_enabled = vim.lsp.inlay_hint.is_enabled({ bufnr = 0 })
4949

5050
vim.lsp.inlay_hint.enable(not is_enabled)
5151
vim.notify(

0 commit comments

Comments
 (0)