diff --git a/init.lua b/init.lua index 8629ce32..3ed11a62 100644 --- a/init.lua +++ b/init.lua @@ -190,12 +190,6 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) -if vim.lsp.inlay_hint then - vim.keymap.set('n', 'ih', function() - vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled {}) - end, { desc = 'Toggle [I]nlay [H]ints' }) -end - -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -606,9 +600,9 @@ require('lazy').setup({ -- -- This may be unwanted, since they displace some of your code if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then - map('th', function() + map('ih', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf }) - end, '[T]oggle Inlay [H]ints') + end, 'Toggle [I]nlay [H]ints') end end, })