From 40bc4f1460c842823a1ec509976ccd70ea86f71c Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 20 May 2024 22:10:07 +0200 Subject: refactor: remove garbage code --- lua/pml68/remap.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lua/pml68') diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index eb37b9e..c21fbb2 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -63,12 +63,7 @@ vim.api.nvim_create_autocmd('LspAttach', { vim.keymap.set('n', 'gc', 'lua vim.lsp.buf.code_action()', opts) -- u/Blan_11 vim.keymap.set('n', 'lh', function() - local ok = pcall(vim.lsp.inlay_hint.enable, vim.lsp.inlay_hint.is_enabled()) - if ok then - vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) - else - vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled()) - end + vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end, { silent = true }) end }) -- cgit v1.2.3