Create trouble.lua
added Problems section like vscode
This commit is contained in:
parent
74258c0a24
commit
a72b9f0902
1 changed files with 14 additions and 0 deletions
14
lua/custom/plugins/trouble.lua
Normal file
14
lua/custom/plugins/trouble.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
return {
|
||||||
|
"folke/trouble.nvim",
|
||||||
|
config = function()
|
||||||
|
require("trouble").setup {}
|
||||||
|
|
||||||
|
-- Define keybindings
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>xx", "<cmd>Trouble<cr>", {silent = true, noremap = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>xt", "<cmd>TroubleToggle<cr>", {silent = true, noremap = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>xw", "<cmd>Trouble lsp_workspace_diagnostics<cr>", {silent = true, noremap = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>xd", "<cmd>Trouble lsp_document_diagnostics<cr>", {silent = true, noremap = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>xl", "<cmd>Trouble loclist<cr>", {silent = true, noremap = true})
|
||||||
|
vim.api.nvim_set_keymap("n", "<leader>xq", "<cmd>Trouble quickfix<cr>", {silent = true, noremap = true})
|
||||||
|
end
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue