Update 2024-06-13

This commit is contained in:
Kristofers Solo
2024-06-13 17:58:51 +03:00
parent fa1adf8188
commit ac77ae7902
22 changed files with 201 additions and 221 deletions

View File

@@ -1,26 +1,17 @@
return {
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
version = "*",
cmd = "Trouble",
keys = {
{
"<leader>tt",
function()
require("trouble").toggle()
end,
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Toggle trouble",
},
{
"<leader>tw",
function()
require("trouble").toggle("workspace_diagnostics")
end,
desc = "[W]orkspace Diagnostics",
},
{
"<leader>td",
function()
require("trouble").toggle("document_diagnostics")
end,
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "[D]ocument Diagnostics",
},
},
@@ -28,7 +19,6 @@ return {
position = "bottom", -- position of the list can be: bottom, top, left, right
height = 10, -- height of the trouble list when position is top or bottom
width = 50, -- width of the list when position is left or right
icons = true, -- use devicons for filenames
mode = "workspace_diagnostics", -- "workspace_diagnostics", "document_diagnostics", "quickfix", "lsp_references", "loclist"
severity = nil, -- nil (ALL) or vim.diagnostic.severity.ERROR | WARN | INFO | HINT
fold_open = "", -- icon used for open folds