mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
类型处理
This commit is contained in:
parent
8901580635
commit
1ea8fb6323
1 changed files with 29 additions and 3 deletions
|
|
@ -5,11 +5,37 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>cn",
|
"<leader>cn",
|
||||||
function()
|
"",
|
||||||
require("neogen").generate()
|
|
||||||
end,
|
|
||||||
desc = "Generate Annotations (Neogen)",
|
desc = "Generate Annotations (Neogen)",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<leader>cnf",
|
||||||
|
function()
|
||||||
|
require("neogen").generate({ type = "func" })
|
||||||
|
end,
|
||||||
|
desc = "Generate func Annotations (Neogen)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cnc",
|
||||||
|
function()
|
||||||
|
require("neogen").generate({ type = "class" })
|
||||||
|
end,
|
||||||
|
desc = "Generate class Annotations (Neogen)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cnt",
|
||||||
|
function()
|
||||||
|
require("neogen").generate({ type = "type" })
|
||||||
|
end,
|
||||||
|
desc = "Generate type Annotations (Neogen)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cne",
|
||||||
|
function()
|
||||||
|
require("neogen").generate({ type = "file" })
|
||||||
|
end,
|
||||||
|
desc = "Generate file Annotations (Neogen)",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
if opts.snippet_engine ~= nil then
|
if opts.snippet_engine ~= nil then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue