Change trouble mappings
This commit is contained in:
parent
93eb85e5d8
commit
58d36e14b4
|
@ -22,11 +22,11 @@ local on_attach = function(client, bufnr)
|
|||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
||||
vim.keymap.set('n', 'gD', vim.lsp.buf.definition, bufopts)
|
||||
vim.keymap.set('n', 'gd', '<cmd>TroubleToggle lsp_definitions<cr>', bufopts)
|
||||
vim.keymap.set('n', 'gd', '<cmd>Trouble lsp_definitions<cr>', bufopts)
|
||||
vim.keymap.set('n', 'gR', vim.lsp.buf.references, bufopts)
|
||||
vim.keymap.set('n', 'gr', '<cmd>TroubleToggle lsp_references<cr>', bufopts)
|
||||
vim.keymap.set('n', 'gr', '<cmd>Trouble lsp_references<cr>', bufopts)
|
||||
vim.keymap.set('n', 'gI', vim.lsp.buf.implementation, bufopts)
|
||||
vim.keymap.set('n', 'gi', '<cmd>TroubleToggle lsp_implementations<cr>', bufopts)
|
||||
vim.keymap.set('n', 'gi', '<cmd>Trouble lsp_implementations<cr>', bufopts)
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
|
||||
-- vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)
|
||||
vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts)
|
||||
|
|
Loading…
Reference in a new issue