summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/neogen.lua
blob: f7afbcfde73d704178e569b6a56e1230cfd147c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local map = core.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
}