summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/neogen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conf/plugins/neogen.lua')
-rw-r--r--lua/conf/plugins/neogen.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/conf/plugins/neogen.lua b/lua/conf/plugins/neogen.lua
new file mode 100644
index 0000000..19c3422
--- /dev/null
+++ b/lua/conf/plugins/neogen.lua
@@ -0,0 +1,19 @@
+local misc = require('core.misc')
+local map = misc.map
+
+return { 'danymat/neogen',
+ requires = {
+ 'nvim-treesitter/nvim-treesitter',
+ 'L3MON4D3/LuaSnip'
+ },
+ function()
+ local neogen = require('neogen')
+ neogen.setup {
+ enabled = true,
+ input_after_comment = true,
+ snippet_engine = "luasnip",
+ }
+
+ map('n', '<leader>d', neogen.generate)
+ end
+}