From c43a59df5d71cfdf170392d990fcdc1861a8f1e1 Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 24 Feb 2025 18:58:47 +0100 Subject: fix: make inlay hints toggle local to current buffer --- lua/pml68/remap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/pml68/remap.lua') diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index 92614a9..3846493 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -108,6 +108,6 @@ vim.api.nvim_create_autocmd('LspAttach', { -- u/Blan_11 vim.keymap.set('n', 'lh', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) - end, { silent = true }) + end, { silent = true, buffer = event.buf }) end }) -- cgit v1.2.3