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 = {
|
||||
package_installed = "✔",
|
||||
package_pending = "➜",
|
||||
package_uninstalled = "✗"
|
||||
package_uninstalled = "✘"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -73,7 +73,7 @@ return {
|
|||
'diagnostics',
|
||||
color = { gui = 'bold', bg = '#141617' },
|
||||
sections = { 'error', 'warn', 'info', 'hint' },
|
||||
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
||||
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
||||
padding = 1,
|
||||
update_in_insert = true
|
||||
},
|
||||
|
|
|
@ -1,10 +1,41 @@
|
|||
return {
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {
|
||||
use_diagnostic_signs = true,
|
||||
vim.keymap.set("n", "<leader>T", function() require("trouble").toggle() end),
|
||||
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||
cmd = "Trouble",
|
||||
keys = {
|
||||
{
|
||||
"<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