diff --git a/init.lua b/init.lua index b100a3fb..05050ce2 100644 --- a/init.lua +++ b/init.lua @@ -1024,6 +1024,35 @@ require('lazy').setup({ { '5', 'Grapple select index=5', desc = 'Grapple select 5' }, }, }, + { + 'folke/trouble.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + vim.keymap.set('n', 'xx', function() + require('trouble').toggle() + end) + vim.keymap.set('n', 'xw', function() + require('trouble').toggle 'workspace_diagnostics' + end) + vim.keymap.set('n', 'xd', function() + require('trouble').toggle 'document_diagnostics' + end) + vim.keymap.set('n', 'xq', function() + require('trouble').toggle 'quickfix' + end) + vim.keymap.set('n', 'xl', function() + require('trouble').toggle 'loclist' + end) + vim.keymap.set('n', 'gR', function() + require('trouble').toggle 'lsp_references' + end) + end, + opts = { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + }, + }, -- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the -- init.lua. If you want these files, they are in the repository, so you can just download them and