From 439a278adc35eeefbc2049cdade587e0f2e7d37e Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 9 Sep 2025 09:44:06 +0300 Subject: [PATCH] feat(lsp): rename bind --- config/plugins/lsp.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/plugins/lsp.nix b/config/plugins/lsp.nix index 2c25ce4..c762680 100644 --- a/config/plugins/lsp.nix +++ b/config/plugins/lsp.nix @@ -66,5 +66,15 @@ key = "ti"; options.desc = "toggle inlay hints"; } + { + action.__raw = '' + function() + vim.lsp.buf.rename() + vim.cmd('silent! wa') + end + ''; + key = "lar"; + options.desc = "LSP rename and save all buffers"; + } ]; } -- 2.44.1