added devicons, neogen, todo-comments and trouble

This commit is contained in:
2024-01-27 21:08:14 +01:00
parent 4387653876
commit 48d934c361
8 changed files with 82 additions and 8 deletions

33
after/plugin/neogen.lua Normal file
View File

@@ -0,0 +1,33 @@
local neogen = require('neogen')
neogen.setup({
enabled = true, --if you want to disable Neogen
input_after_comment = true, -- (default: true) automatic jump (with insert mode) on inserted annotation
languages = {
cs = {
template = {
annotation_convention = 'xmldoc'
}
}
}
})
vim.keymap.set('n', '<leader>nf', function()
neogen.generate({ type = 'func' })
end)
vim.keymap.set('n', '<leader>nt', function()
neogen.generate({ type = 'type' })
end)
vim.keymap.set('n', '<leader>nc', function()
neogen.generate({ type = 'class' })
end)
vim.keymap.set('i', '<C-k>', function()
neogen.jump_next()
end)
vim.keymap.set('i', '<C-j>', function()
neogen.jump_prev()
end)