From 053816706e2acafc05dd9c9674a103c09747e314 Mon Sep 17 00:00:00 2001 From: pro100ton Date: Sat, 1 Feb 2025 11:05:39 +0300 Subject: [PATCH] Add negoen plugin --- lua/custom/neogen.lua | 7 +++++++ lua/custom/plugins/neogen.lua | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 lua/custom/neogen.lua create mode 100644 lua/custom/plugins/neogen.lua 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, + } +}