add trouble document systems right
This commit is contained in:
parent
caab43bbbf
commit
28faa3ceb3
|
@ -36,19 +36,19 @@ return {
|
||||||
'folke/trouble.nvim',
|
'folke/trouble.nvim',
|
||||||
cmd = 'Trouble',
|
cmd = 'Trouble',
|
||||||
opts = { use_diagnostic_signs = true },
|
opts = { use_diagnostic_signs = true },
|
||||||
-- stylua: ignore
|
|
||||||
keys = {
|
keys = {
|
||||||
{ '<leader>ctb', "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = 'Document Diagnostics (Trouble)' },
|
{ '<leader>ctb', '<cmd>Trouble diagnostics toggle filter.buf=0<cr>', desc = 'Document Diagnostics (Trouble)' },
|
||||||
{ '<leader>ctr', '<cmd>Trouble diagnostics toggle<cr>', desc = 'Workspace Diagnostics (Trouble)' },
|
{ '<leader>ctr', '<cmd>Trouble diagnostics toggle<cr>', desc = 'Workspace Diagnostics (Trouble)' },
|
||||||
{ '<leader>ctq', "<cmd>Trouble qflist toggle<cr>", desc = 'Quickfix List (Trouble)' },
|
{ '<leader>ctq', '<cmd>Trouble qflist toggle<cr>', desc = 'Quickfix List (Trouble)' },
|
||||||
{ '<leader>ctl', "<cmd>Trouble loclist toggle<cr>", desc = 'Location List (Trouble)' },
|
{ '<leader>ctl', '<cmd>Trouble loclist toggle<cr>', desc = 'Location List (Trouble)' },
|
||||||
{ '<leader>ctd', "<cmd>Trouble symbols<cr>", desc = 'LSP symbols (Trouble)' },
|
{ '<leader>ctd', '<cmd>Trouble symbols<cr>', desc = 'LSP symbols (Trouble)' },
|
||||||
{ '<leader>ctt', "<cmd>Trouble todo<cr>", desc = 'Todos (Trouble)' },
|
{ '<leader>ctt', '<cmd>Trouble todo<cr>', desc = 'Todos (Trouble)' },
|
||||||
|
{ '<leader>cts', '<cmd>Trouble lsp_document_symbols toggle win.position=right<cr>', desc = 'Document [S]ymbols side (Trouble)' },
|
||||||
{
|
{
|
||||||
'[q',
|
'[q',
|
||||||
function()
|
function()
|
||||||
if require('trouble').is_open() then
|
if require('trouble').is_open() then
|
||||||
require('trouble').previous({ skip_groups = true, jump = true })
|
require('trouble').previous { skip_groups = true, jump = true }
|
||||||
else
|
else
|
||||||
vim.cmd.cprev()
|
vim.cmd.cprev()
|
||||||
end
|
end
|
||||||
|
@ -59,7 +59,7 @@ return {
|
||||||
']q',
|
']q',
|
||||||
function()
|
function()
|
||||||
if require('trouble').is_open() then
|
if require('trouble').is_open() then
|
||||||
require('trouble').next({ skip_groups = true, jump = true })
|
require('trouble').next { skip_groups = true, jump = true }
|
||||||
else
|
else
|
||||||
vim.cmd.cnext()
|
vim.cmd.cnext()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue