From 83795a2d2c57b8369c0ead6e6e027c52a0e65a40 Mon Sep 17 00:00:00 2001 From: Gilad Sher Date: Sun, 8 Sep 2024 20:26:29 -0400 Subject: [PATCH] remove duplicates --- init.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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, })