summaryrefslogtreecommitdiff
path: root/lua/ache/lazy.lua
diff options
context:
space:
mode:
authorache <ache@ache.one>2025-12-21 10:26:22 +0100
committerache <ache@ache.one>2025-12-21 10:26:22 +0100
commit09b4d0c7a285d14c330bbd6ec8db0761ddc2bc64 (patch)
tree3cc1cd52377b929c04605aec625ab316ecc3ca4f /lua/ache/lazy.lua
parentdocs: rename rust-tools configuration file (diff)
feat: add LSP references and fix keymap for recent files in telescope plugin
Diffstat (limited to 'lua/ache/lazy.lua')
-rw-r--r--lua/ache/lazy.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/ache/lazy.lua b/lua/ache/lazy.lua
index be9ad75..e01d3cb 100644
--- a/lua/ache/lazy.lua
+++ b/lua/ache/lazy.lua
@@ -120,6 +120,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
end
local tele_defs_action = "<cmd>Telescope lsp_definitions<CR>"
+ local tele_refs_action = "<cmd>Telescope lsp_references<CR>"
local tele_impl_action = "<cmd>Telescope lsp_implementations<CR>"
local tele_typedefs_action = "<cmd>Telescope lsp_type_definitions<CR>"
local tele_diag_action = "<cmd>Telescope diagnostics bufnr=0<CR>"
@@ -136,7 +137,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
map("<leader>E", vim.diagnostic.open_float, "Open Diagnostics")
map("<leader>k", vim.lsp.buf.signature_help, "Signature Help")
map("<leader>rn", vim.lsp.buf.rename, "Rename")
- map("<leader>f", vim.lsp.buf.format, "Format")
+ map("<leader>lf", vim.lsp.buf.format, "Format")
map("<leader>gR", "<cmd>Telescope lsp_references<CR>", "Show LSP references")
map("<leader>gD", vim.lsp.buf.declaration, "Go to declaration")