diff --git a/lua/custom/neogen.lua b/lua/custom/neogen.lua new file mode 100644 index 0000000..c071acf --- /dev/null +++ b/lua/custom/neogen.lua @@ -0,0 +1,7 @@ +require("neogen").setup { + enabled = true +} + +local keymap = vim.keymap +local opts = { noremap = true, silent = true } +keymap.set("n", "ids", ":lua require('neogen').generate()", opts) diff --git a/lua/custom/plugins/neogen.lua b/lua/custom/plugins/neogen.lua new file mode 100644 index 0000000..1f0174e --- /dev/null +++ b/lua/custom/plugins/neogen.lua @@ -0,0 +1,12 @@ +-- Plugin for generating annotations +return { + { + "danymat/neogen", + config = true, + -- Uncomment next line if you want to follow only stable versions + version = "*", + config = function() + require "custom/neogen" + end, + } +}