Create and push an initial working version of this repo before I change things on this machine Signed-off-by: Robert Morrison <robert@closedless.xyz>
55 lines
1.6 KiB
Lua
55 lines
1.6 KiB
Lua
return {
|
|
|
|
{
|
|
'nvim-treesitter/nvim-treesitter',
|
|
opts = function()
|
|
return require('plugins.configs.treesitter')
|
|
end,
|
|
config = function(_, opts)
|
|
-- to ensure the configuration can happen we need to do this here
|
|
-- otherwise the configuration of treesitter can't find it
|
|
require('lazy').load { plugins = { 'ts-rainbow' } }
|
|
|
|
require('nvim-treesitter.configs').setup(opts)
|
|
end,
|
|
init = function()
|
|
require('core.utils.lazy')('nvim-treesitter')
|
|
end,
|
|
build = ':TSUpdate',
|
|
dependencies = {
|
|
{ 'HiPhish/nvim-ts-rainbow2', name = 'ts-rainbow' },
|
|
{ 'nvim-treesitter/nvim-treesitter-textobjects' },
|
|
},
|
|
},
|
|
|
|
{
|
|
'preservim/nerdcommenter',
|
|
event = 'VeryLazy',
|
|
init = function()
|
|
vim.g.NERDSpaceDelims = 1
|
|
vim.g.NERDCompaceSexyComs = 1
|
|
end,
|
|
keys = {
|
|
{ '<leader>cc', nil, desc = 'Comment line' },
|
|
{ '<leader>cn', nil, desc = 'Comment line force nesting' },
|
|
{ '<leader>c<space>', nil, desc = 'Toggle comment selection' },
|
|
{ '<leader>cm', nil, desc = 'Comment Minimal' },
|
|
{ '<leader>ci', nil, desc = 'Toggle comment line' },
|
|
{ '<leader>cs', nil, desc = 'Comment Sexy' },
|
|
{ '<leader>cy', nil, desc = 'Comment and yank' },
|
|
{ '<leader>c$', nil, desc = 'Comment to EOL' },
|
|
{ '<leader>cA', nil, desc = 'Append comment' },
|
|
{ '<leader>ca', nil, desc = 'Switch comment delimiters' },
|
|
{ '<leader>cl', nil, desc = 'Comment align left' },
|
|
{ '<leader>cb', nil, desc = 'Comment alight both' },
|
|
{ '<leader>cu', nil, desc = 'Uncomment lines' },
|
|
},
|
|
},
|
|
|
|
{
|
|
'mcauley-penney/tidy.nvim',
|
|
config = true,
|
|
event = 'BufWritePre',
|
|
},
|
|
}
|