nvim: Fix trouble for major version update
Fixed for new invocation usage and removed deprecated commands. Added telescope functionality (to push results into trouble) though I am not quite happy with the close coupling yet. Have not found an easy way to only have this mapping be created if trouble exists.
This commit is contained in:
parent
1771a61334
commit
94c2d83c86
2 changed files with 7 additions and 5 deletions
|
@ -235,13 +235,10 @@ return {
|
|||
opts = {},
|
||||
cmd = {
|
||||
"Trouble",
|
||||
"TroubleRefresh",
|
||||
"TroubleToggle",
|
||||
"TroubleClose",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>sd", "<cmd>Trouble workspace_diagnostics<cr>", silent = true, desc = "diagnostics workspace" },
|
||||
{ "<leader>sD", "<cmd>Trouble document_diagnostics<cr>", silent = true, desc = "diagnostics document" },
|
||||
{ "<leader>sd", "<cmd>Trouble diagnostics toggle<cr>", silent = true, desc = "diagnostics workspace" },
|
||||
{ "<leader>sD", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", silent = true, desc = "diagnostics document" },
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -36,6 +36,11 @@ return {
|
|||
prompt_prefix = " ",
|
||||
selection_caret = " ",
|
||||
color_devicons = true,
|
||||
mappings = {
|
||||
-- FIXME Find way to only invoke this *IF* trouble plugin is found
|
||||
i = { ["<c-t>"] = require("trouble.sources.telescope").open },
|
||||
n = { ["<c-t>"] = require("trouble.sources.telescope").open },
|
||||
}
|
||||
},
|
||||
pickers = {
|
||||
buffers = { theme = "ivy" },
|
||||
|
|
Loading…
Reference in a new issue