update trouble after rework
This commit is contained in:
parent
83b15578f1
commit
33c23c282c
3 changed files with 37 additions and 6 deletions
|
@ -135,7 +135,7 @@ return {
|
||||||
icons = {
|
icons = {
|
||||||
package_installed = "✔",
|
package_installed = "✔",
|
||||||
package_pending = "➜",
|
package_pending = "➜",
|
||||||
package_uninstalled = "✗"
|
package_uninstalled = "✘"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -73,7 +73,7 @@ return {
|
||||||
'diagnostics',
|
'diagnostics',
|
||||||
color = { gui = 'bold', bg = '#141617' },
|
color = { gui = 'bold', bg = '#141617' },
|
||||||
sections = { 'error', 'warn', 'info', 'hint' },
|
sections = { 'error', 'warn', 'info', 'hint' },
|
||||||
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
update_in_insert = true
|
update_in_insert = true
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,10 +1,41 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||||
opts = {
|
cmd = "Trouble",
|
||||||
use_diagnostic_signs = true,
|
keys = {
|
||||||
vim.keymap.set("n", "<leader>T", function() require("trouble").toggle() end),
|
{
|
||||||
|
"<leader>xx",
|
||||||
|
"<cmd>Trouble diagnostics toggle<cr>",
|
||||||
|
desc = "Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xX",
|
||||||
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||||
|
desc = "Buffer Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xs",
|
||||||
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||||
|
desc = "Symbols (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xl",
|
||||||
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||||
|
desc = "LSP Definitions / references / ... (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xL",
|
||||||
|
"<cmd>Trouble loclist toggle<cr>",
|
||||||
|
desc = "Location List (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xQ",
|
||||||
|
"<cmd>Trouble qflist toggle<cr>",
|
||||||
|
desc = "Quickfix List (Trouble)",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue