(go) Add support for godoc
This commit is contained in:
@@ -128,6 +128,7 @@ neogen.setup = function(opts)
|
||||
python = require("neogen.configurations.python"),
|
||||
javascript = require("neogen.configurations.javascript"),
|
||||
c = require("neogen.configurations.c"),
|
||||
go = require("neogen.configurations.go"),
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
24
lua/neogen/configurations/go.lua
Normal file
24
lua/neogen/configurations/go.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
parent = {
|
||||
func = { "function_declaration" },
|
||||
},
|
||||
|
||||
data = {
|
||||
func = {
|
||||
["function_declaration"] = {
|
||||
["0"] = {
|
||||
extract = function()
|
||||
return {}
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
template = {
|
||||
annotation_convention = "godoc",
|
||||
godoc = {
|
||||
{ nil, " $1", { no_results = true } },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user