Add negoen plugin
This commit is contained in:
parent
8b4cda3834
commit
053816706e
2 changed files with 19 additions and 0 deletions
7
lua/custom/neogen.lua
Normal file
7
lua/custom/neogen.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
require("neogen").setup {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
local keymap = vim.keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
keymap.set("n", "<Leader>ids", ":lua require('neogen').generate()<CR>", opts)
|
12
lua/custom/plugins/neogen.lua
Normal file
12
lua/custom/plugins/neogen.lua
Normal file
|
@ -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,
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue