update config
This commit is contained in:
parent
ac048ab7a5
commit
66f931e934
29
init.lua
29
init.lua
|
|
@ -1024,6 +1024,35 @@ require('lazy').setup({
|
||||||
{ '<leader>5', '<cmd>Grapple select index=5<cr>', desc = 'Grapple select 5' },
|
{ '<leader>5', '<cmd>Grapple select index=5<cr>', desc = 'Grapple select 5' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'folke/trouble.nvim',
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set('n', '<leader>xx', function()
|
||||||
|
require('trouble').toggle()
|
||||||
|
end)
|
||||||
|
vim.keymap.set('n', '<leader>xw', function()
|
||||||
|
require('trouble').toggle 'workspace_diagnostics'
|
||||||
|
end)
|
||||||
|
vim.keymap.set('n', '<leader>xd', function()
|
||||||
|
require('trouble').toggle 'document_diagnostics'
|
||||||
|
end)
|
||||||
|
vim.keymap.set('n', '<leader>xq', function()
|
||||||
|
require('trouble').toggle 'quickfix'
|
||||||
|
end)
|
||||||
|
vim.keymap.set('n', '<leader>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
|
-- 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
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue