From 5a52d7719cea33cfb33e71266790a63726fb6112 Mon Sep 17 00:00:00 2001 From: bivashy Date: Wed, 18 Jun 2025 14:46:33 +0500 Subject: [PATCH] Add lsp reference keymapping --- lua/mappings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/mappings.lua b/lua/mappings.lua index a0a8641..79bd0a2 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -7,6 +7,9 @@ map("i", "jj", "") map("n", "cd", ":cd ..", { desc = "Go to parent directory" }) map("n", "ca", vim.lsp.buf.code_action, { desc = "LSP code action" }) map("v", "ca", vim.lsp.buf.code_action, { desc = "LSP code action" }) +map("n", "fl", function() + require("telescope.builtin").lsp_references {} +end, { desc = "Find references (LSP)" }) map("n", "j", function() vim.diagnostic.jump { count = 1 } end, { desc = "Go to next diagnostic" })