moved all plugins

This commit is contained in:
2022-12-28 21:07:04 +01:00
parent 9055e4e876
commit b0918760d4
13 changed files with 151 additions and 193 deletions

34
lua/plugins/neogen.lua Normal file
View File

@ -0,0 +1,34 @@
return {
'danymat/neogen',
dependencies = 'nvim-treesitter/nvim-treesitter',
config = {
enabled = true,
languages = {
cpp = {
template = {
annotation_convention = 'custom',
custom = {
{ nil, '/// file', { no_results = true, type = { 'file' } } },
{ nil, '/// $1', { no_results = true, type = { 'func', 'file' } } },
{ nil, '', { no_results = true, type = { 'file' } } },
{ nil, '/// $1', { type = { 'func' } } },
{ 'tparam', '/// \\tparam %s $1' },
{ 'parameters', '/// \\param %s $1' },
{ 'return_statement', '/// \\return $1' },
},
},
},
},
},
keys = {
{
'<leader>n',
function()
require('neogen').generate()
end,
desc = 'Add comment',
}
},
cmd = 'Neogen'
}