From 4dda237702fafd792cfa5210c02a14a1d7ae9ef5 Mon Sep 17 00:00:00 2001 From: "markus.dieckmann" Date: Mon, 12 May 2025 11:28:58 +0200 Subject: [PATCH] better lsp keys --- nvim/lazy-lock.json | 3 +-- nvim/lua/plugins/lsp.lua | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index c1aa45b..03bd4eb 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,9 +1,8 @@ { - "blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" }, + "blink.cmp": { "branch": "main", "commit": "5187cdaa3274c8f9c758e240ef4b0e793f295b47" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "conform.nvim": { "branch": "master", "commit": "374aaf384e2e841607b8e2fe63fa3ad01d111c91" }, "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" }, - "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, "fzf-lua": { "branch": "main", "commit": "b45881a2043d96506ba628f3bc65a4594b179c4e" }, "kanagawa.nvim": { "branch": "master", "commit": "4de88d695634a8776c687af8e7436cfa074aa0c0" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index c37df8c..d116fb5 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -28,7 +28,7 @@ return { map("gwd", require("fzf-lua").diagnostics_workspace, "[G]o [W]orkspace [D]iagnostics") -- Find references for the word under your cursor. - map("gr", require("fzf-lua").lsp_references, "[G]oto [R]eferences") + map('gr', require('fzf-lua').lsp_references, '[G]oto [R]eferences') -- Jump to the implementation of the word under your cursor. map("gi", require("fzf-lua").lsp_implementations, "[G]oto [I]mplementation") @@ -36,10 +36,11 @@ return { -- Jump to the definition of the word under your cursor. -- This is where a variable was first declared, or where a function is defined, etc. -- To jump back, press . - map("gd", require("fzf-lua").lsp_definitions, "[G]oto [D]efinition") + map('gd', require('fzf-lua').lsp_definitions, '[G]oto [D]efinition') -- WARN: This is not Goto Definition, this is Goto Declaration. - map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration") + -- For example, in C this would take you to the header. + map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') -- Fuzzy find all the symbols in your current document. map("gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")