trouble config

This commit is contained in:
2026-08-31 18:06:50 +02:00
parent 036621bd62
commit d4aef6e19e
5 changed files with 17 additions and 2 deletions
+3 -2
View File
@@ -115,10 +115,11 @@ Diagnostics:
- `g.` open diagnostic float - `g.` open diagnostic float
- `gl` send diagnostics to the location list - `gl` send diagnostics to the location list
- `gld` display diagnostic information - `gld` display diagnostic information
- `<leader>ti` toggle inline diagnostics
- `<leader>tv` toggle virtual diagnostics
- `]g` jump to next warning or error - `]g` jump to next warning or error
- `[g` jump to previous warning or error - `[g` jump to previous warning or error
- `<leader>ti` toggle inline diagnostics
- `<leader>tv` toggle virtual diagnostics
- `<leader>xx` toggle project diagnostics with `:Trouble diagnostics toggle`
## Tree-sitter ## Tree-sitter
@@ -125,6 +125,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
}) })
-- diagnostics -- diagnostics
map("n", "<leader>xx", "<Cmd>Trouble diagnostics toggle<CR>", { desc = "toggle project diagnostics" })
map("n", "g.", vim.diagnostic.open_float, { desc = "line diagnostics" }) map("n", "g.", vim.diagnostic.open_float, { desc = "line diagnostics" })
map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" }) map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" })
@@ -2,6 +2,7 @@ require("romanzy.plugins.rose-pine")
require("romanzy.plugins.mini") require("romanzy.plugins.mini")
require("romanzy.plugins.lazygit") require("romanzy.plugins.lazygit")
require("romanzy.plugins.diffview") require("romanzy.plugins.diffview")
require("romanzy.plugins.trouble")
require("romanzy.plugins.oil") require("romanzy.plugins.oil")
require("romanzy.plugins.telescope") require("romanzy.plugins.telescope")
require("romanzy.plugins.nvim-treesitter") require("romanzy.plugins.nvim-treesitter")
@@ -0,0 +1,8 @@
vim.pack.add({
{
src = "https://github.com/folke/trouble.nvim",
name = "trouble.nvim",
},
})
require("trouble").setup()
+4
View File
@@ -55,6 +55,10 @@
"telescope.nvim": { "telescope.nvim": {
"rev": "427b576c16792edad01a92b89721d923c19ad60f", "rev": "427b576c16792edad01a92b89721d923c19ad60f",
"src": "https://github.com/nvim-telescope/telescope.nvim" "src": "https://github.com/nvim-telescope/telescope.nvim"
},
"trouble.nvim": {
"rev": "bd67efe408d4816e25e8491cc5ad4088e708a69a",
"src": "https://github.com/folke/trouble.nvim"
} }
} }
} }