Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lua/keymap/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ _G._telescope_collections = function(picker_type)
end

_G._toggle_inlayhint = function()
local is_enabled = vim.lsp.inlay_hint.is_enabled()

local is_enabled = vim.lsp.inlay_hint.is_enabled({ bufnr = 0 })
vim.lsp.inlay_hint.enable(not is_enabled)
vim.notify(
(is_enabled and "Inlay hint disabled successfully" or "Inlay hint enabled successfully"),
Expand Down