Compare commits

...

2 Commits

Author SHA1 Message Date
02b453f86c Neovim: Add trouble 2024-05-31 15:17:01 -07:00
e4c9c1426d Neovim: Move todo comments into separate file 2024-05-31 15:16:49 -07:00
3 changed files with 56 additions and 3 deletions

View File

@ -238,6 +238,7 @@ require('lazy').setup({
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
['<leader>x'] = { name = 'Trouble [X]', _ = 'which_key_ignore' },
}
-- visual mode
require('which-key').register({
@ -785,9 +786,6 @@ require('lazy').setup({
end,
},
-- Highlight todo, notes, etc in comments
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
{ -- Collection of various small independent plugins/modules
'echasnovski/mini.nvim',
config = function()

View File

@ -0,0 +1,17 @@
-- Highlight todo, notes, etc in comments
-- https://github.com/folke/todo-comments.nvim
return {
'folke/todo-comments.nvim',
event = 'VimEnter',
dependencies = { 'nvim-lua/plenary.nvim' },
opts = {
signs = false,
},
keys = {
{
'<leader>st',
'<cmd>TodoTelescope<cr>',
desc = '[T]odo all files',
},
},
}

View File

@ -0,0 +1,38 @@
-- Friendly display of problems in the codebase
-- https://github.com/folke/trouble.nvim
return {
'folke/trouble.nvim',
keys = {
{
'<leader>xx',
'<cmd>Trouble diagnostics toggle<cr>',
desc = 'Diagnostics (Trouble)',
},
{
'<leader>xX',
'<cmd>Trouble diagnostics toggle filter.buf=0<cr>',
desc = 'Buffer Diagnostics (Trouble)',
},
{
'<leader>cs',
'<cmd>Trouble symbols toggle focus=false<cr>',
desc = 'Symbols (Trouble)',
},
{
'<leader>cl',
'<cmd>Trouble lsp toggle focus=false win.position=right<cr>',
desc = 'LSP Definitions / references / ... (Trouble)',
},
{
'<leader>xL',
'<cmd>Trouble loclist toggle<cr>',
desc = 'Location List (Trouble)',
},
{
'<leader>xQ',
'<cmd>Trouble qflist toggle<cr>',
desc = 'Quickfix List (Trouble)',
},
},
opts = {},
}