diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2022-12-13 11:21:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 11:21:34 -0500 |
commit | 760823f1e3cda01d9b8a7c52c7a7e2db63285d5b (patch) | |
tree | d8f36101b740d6c012920b8a439b1badbc991432 /init.lua | |
parent | e3b768619c912ea8f22a054a5ebba8c0bb664b06 (diff) |
small changes to default mappings (#41)
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -304,8 +304,9 @@ local on_attach = function(_, bufnr) nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction') nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition') - nmap('gi', vim.lsp.buf.implementation, '[G]oto [I]mplementation') nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') + nmap('gI', vim.lsp.buf.implementation, '[G]oto [I]mplementation') + nmap('<leader>D', vim.lsp.buf.type_definition, 'Type [D]efinition') nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols') nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols') @@ -315,7 +316,6 @@ local on_attach = function(_, bufnr) -- Lesser used LSP functionality nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') - nmap('<leader>D', vim.lsp.buf.type_definition, 'Type [D]efinition') nmap('<leader>wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder') nmap('<leader>wr', vim.lsp.buf.remove_workspace_folder, '[W]orkspace [R]emove Folder') nmap('<leader>wl', function() @@ -355,7 +355,7 @@ for _, lsp in ipairs(servers) do } end --- Turn on status information +-- Turn on lsp status information require('fidget').setup() -- Example custom configuration for lua |