Public Access
trouble config
This commit is contained in:
@@ -115,10 +115,11 @@ Diagnostics:
|
||||
- `g.` open diagnostic float
|
||||
- `gl` send diagnostics to the location list
|
||||
- `gld` display diagnostic information
|
||||
- `<leader>ti` toggle inline diagnostics
|
||||
- `<leader>tv` toggle virtual diagnostics
|
||||
- `]g` jump to next 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
|
||||
|
||||
|
||||
@@ -125,6 +125,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||
})
|
||||
|
||||
-- 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", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" })
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ require("romanzy.plugins.rose-pine")
|
||||
require("romanzy.plugins.mini")
|
||||
require("romanzy.plugins.lazygit")
|
||||
require("romanzy.plugins.diffview")
|
||||
require("romanzy.plugins.trouble")
|
||||
require("romanzy.plugins.oil")
|
||||
require("romanzy.plugins.telescope")
|
||||
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()
|
||||
@@ -55,6 +55,10 @@
|
||||
"telescope.nvim": {
|
||||
"rev": "427b576c16792edad01a92b89721d923c19ad60f",
|
||||
"src": "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
"trouble.nvim": {
|
||||
"rev": "bd67efe408d4816e25e8491cc5ad4088e708a69a",
|
||||
"src": "https://github.com/folke/trouble.nvim"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user