Skip to content

Commit

Permalink
refac(lsp): add inlay_hint keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
n3wborn committed Sep 21, 2023
1 parent ab58568 commit f8e0c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ return {
-- capabilities
local capabilities = client.server_capabilities

if capabilities.inlayHintProvider then
vim.lsp.buf.inlay_hint(bufnr, true)
end
u.map('n', '<leader>h', function()
vim.lsp.inlay_hint(0, nil)
end, { desc = 'Toggle Inlay Hints' })

if client.supports_method('textDocument/formatting') then
local formatting_cb = function()
Expand Down

0 comments on commit f8e0c37

Please sign in to comment.