diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-05-20 22:10:07 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-05-20 22:10:07 +0200 |
| commit | 40bc4f1460c842823a1ec509976ccd70ea86f71c (patch) | |
| tree | ee1eedbf15e3657e34268ccc2631f5a979efd977 /lua/pml68 | |
| parent | feat: add remap for toggling inlay hints (diff) | |
| download | nvim-40bc4f1460c842823a1ec509976ccd70ea86f71c.tar.gz | |
refactor: remove garbage code
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/remap.lua | 7 |
1 files changed, 1 insertions, 6 deletions
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', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts) -- u/Blan_11 vim.keymap.set('n', '<leader>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 }) |
