add trouble

This commit is contained in:
Barak Michener 2021-10-29 14:59:39 -07:00
parent 9adddc4b7a
commit f763d7b994
2 changed files with 29 additions and 0 deletions

View file

@ -147,6 +147,32 @@ require('lspkind').init({
},
})
require('trouble').setup {
mode = "lsp_document_diagnostics",
auto_close = true,
action_keys = { -- key mappings for actions in the trouble list
-- map to {} to remove a mapping, for example:
-- close = {},
--close = "q", -- close the list
--cancel = "<esc>", -- cancel the preview and get back to your last window / buffer / cursor
--refresh = "r", -- manually refresh
jump = {"o", "<tab>"}, -- jump to the diagnostic or open / close folds
--open_split = { "<c-x>" }, -- open buffer in new split
--open_vsplit = { "<c-v>" }, -- open buffer in new vsplit
open_tab = { }, -- open buffer in new tab
jump_close = {"<cr>"}, -- jump to the diagnostic and close the list
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
toggle_preview = "P", -- toggle auto_preview
hover = "K", -- opens a small popup with the full multiline message
preview = "p", -- preview the diagnostic location
close_folds = {"zM", "zm"}, -- close all folds
open_folds = {"zR", "zr"}, -- open all folds
toggle_fold = {"zA", "za"}, -- toggle fold of current file
previous = "k", -- previous item
next = "j" -- next item
},
}
require('telescope').setup {
defaults = {
mappings = {