Skip to content

Commit

Permalink
fix(nvim): improve neogen settings
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Aug 9, 2024
1 parent b2a4a71 commit b55e87d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/neovim/config/lua/user/neogen.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local opts = { noremap = true, silent = true }
local neogen = require("neogen")
neogen.setup({})
vim.keymap.set("n", "<Leader>gco", function()
neogen.generate()
end, { noremap = true, silent = true })
neogen.setup({
snippet_engine = "luasnip",
})
vim.keymap.set("n", "gco", neogen.generate, opts)

0 comments on commit b55e87d

Please sign in to comment.