better lsp keys
This commit is contained in:
@ -28,7 +28,7 @@ return {
|
||||
map("<leader>gwd", require("fzf-lua").diagnostics_workspace, "[G]o [W]orkspace [D]iagnostics")
|
||||
|
||||
-- Find references for the word under your cursor.
|
||||
map("<leader>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("<leader>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 <C-t>.
|
||||
map("<leader>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("<leader>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("<leader>gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")
|
||||
|
Reference in New Issue
Block a user