From 4f0d81a91a87c7a4ab94654b09e28ba6bae3d19d Mon Sep 17 00:00:00 2001 From: Peter Sheehan <145384599+peter-bread@users.noreply.github.com> Date: Sat, 7 Mar 2026 15:22:11 +0000 Subject: [PATCH] feat(lsp): initial basic keymaps --- lua/peter/util/lsp.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/peter/util/lsp.lua b/lua/peter/util/lsp.lua index ef9fb05..2504bfc 100644 --- a/lua/peter/util/lsp.lua +++ b/lua/peter/util/lsp.lua @@ -301,6 +301,19 @@ function M.set_default_keymaps(client, bufnr) has = "textDocument/codeLens", }) + map("ch", function() + vim.lsp.buf.clear_references() + vim.lsp.buf.document_highlight() + end, { + desc = "Highlight References", + has = "textDocument/documentHighlight", + }) + + map("cH", vim.lsp.buf.clear_references, { + desc = "Clear References", + has = "textDocument/documentHighlight", + }) + map("cr", vim.lsp.buf.rename, { desc = "Rename", has = "textDocument/rename",