Skip to content

Commit

Permalink
small changes to default mappings (nvim-lua#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries authored Dec 13, 2022
1 parent e3b7686 commit 760823f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 760823f

Please sign in to comment.