repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/bugabinga/plugins/neogen.lua
Rawlocal map = require 'std.map'
map.normal {
description = 'Generate doc comment for outer element',
category = 'editing',
keys = '<leader>gd',
command = function () require 'neogen'.generate() end,
}
map.normal {
name = 'Generate Doc Comment for Function',
category = 'editing',
keys = '<leader>gdf',
command = function () require 'neogen'.generate { type = 'func', } end,
}
map.normal {
description = 'Generate Doc Comment for File',
category = 'editing',
keys = '<leader>gdF',
command = function () require 'neogen'.generate { type = 'file', } end,
}
map.normal {
description = 'Generate Doc Comment for Class',
category = 'editing',
keys = '<leader>gdc',
command = function () require 'neogen'.generate { type = 'class', } end,
}
return {
'danymat/neogen',
dependencies = { 'nvim-treesitter/nvim-treesitter', },
opts = {},
}