Skip to content

Commit 83795a2

Browse files
committed
remove duplicates
1 parent 41b2a96 commit 83795a2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

init.lua

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,6 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
190190
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
191191
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
192192

193-
if vim.lsp.inlay_hint then
194-
vim.keymap.set('n', '<leader>ih', function()
195-
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled {})
196-
end, { desc = 'Toggle [I]nlay [H]ints' })
197-
end
198-
199193
-- [[ Basic Autocommands ]]
200194
-- See `:help lua-guide-autocommands`
201195

@@ -606,9 +600,9 @@ require('lazy').setup({
606600
--
607601
-- This may be unwanted, since they displace some of your code
608602
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
609-
map('<leader>th', function()
603+
map('<leader>ih', function()
610604
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
611-
end, '[T]oggle Inlay [H]ints')
605+
end, 'Toggle [I]nlay [H]ints')
612606
end
613607
end,
614608
})

0 commit comments

Comments
 (0)