fix trouble and format
This commit is contained in:
parent
e7dccf3053
commit
961b6dd09a
|
@ -266,28 +266,16 @@ local plugins = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
cmd = { "Trouble", "TroubleToggle" },
|
cmd = "Trouble",
|
||||||
opts = { use_diagnostic_signs = true },
|
opts = { use_diagnostic_signs = true },
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{ '<leader>rb', "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = 'Document Diagnostics (Trouble)' },
|
||||||
'<leader>e',
|
{ '<leader>rr', '<cmd>Trouble diagnostics toggle<cr>', desc = 'Workspace Diagnostics (Trouble)' },
|
||||||
'<cmd>TroubleToggle document_diagnostics<CR>',
|
{ '<leader>rq', "<cmd>Trouble qflist toggle<cr>", desc = 'Quickfix List (Trouble)' },
|
||||||
noremap = true,
|
{ '<leader>rl', "<cmd>Trouble loclist toggle<cr>", desc = 'Location List (Trouble)' },
|
||||||
desc =
|
{ '<leader>rd', "<cmd>Trouble symbols<cr>", desc = 'LSP symbols (Trouble)' },
|
||||||
'Document Diagnostics'
|
{ '<leader>rt', "<cmd>Trouble todo<cr>", desc = 'Todos (Trouble)' },
|
||||||
},
|
|
||||||
{
|
|
||||||
'<leader>r',
|
|
||||||
'<cmd>TroubleToggle workspace_diagnostics<CR>',
|
|
||||||
noremap = true,
|
|
||||||
desc =
|
|
||||||
'Workspace Diagnostics'
|
|
||||||
},
|
|
||||||
{ '<leader>xx', '<cmd>TroubleToggle document_diagnostics<cr>', desc = 'Document Diagnostics (Trouble)' },
|
|
||||||
{ '<leader>xX', '<cmd>TroubleToggle workspace_diagnostics<cr>', desc = 'Workspace Diagnostics (Trouble)' },
|
|
||||||
{ '<leader>xQ', '<cmd>TroubleToggle quickfix<cr>', desc = 'Quickfix List (Trouble)' },
|
|
||||||
{ '<leader>xL', '<cmd>TroubleToggle loclist<cr>', desc = 'Location List (Trouble)' },
|
|
||||||
{
|
{
|
||||||
'[q',
|
'[q',
|
||||||
function()
|
function()
|
||||||
|
|
Loading…
Reference in New Issue