feat: working ocaml neogen

This commit is contained in:
janishutz committed 2026-10-03 12:23:21 +02:00
1 parent 7065b85b2a
commit 67c7c497c2
1 file changed
+17 -19
+17 -19
View File
@@ -2,15 +2,14 @@ return {
"danymat/neogen", "danymat/neogen",
opts = { opts = {
snippet_engine = "luasnip", snippet_engine = "luasnip",
template = {
ocamldoc = {
{ nil, "(** $1 *)", { no_reults = true, type = { "func", "class", "type", "file" } } },
},
},
languages = { languages = {
ocaml = { ocaml = {
template = { template = {
annotation_convention = "ocamldoc", annotation_convention = "ocamldoc",
use_default_comment = false,
ocamldoc = {
{ nil, "(** $1 *)", { no_results = true, type = { "func", "class", "type", "file" } } },
},
}, },
parent = { parent = {
func = { func = {
@@ -22,26 +21,25 @@ return {
}, },
data = { data = {
func = { func = {
func = { ["value_definition"] = {
["value_definition"] = { ["0"] = {
["0"] = { extract = function()
extract = function() return {}
return {} end,
end,
},
}, },
}, },
type = { },
["type_definition"] = { type = {
["0"] = { ["type_definition"] = {
extract = function() ["0"] = {
return {} extract = function()
end, return {}
}, end,
}, },
}, },
}, },
}, },
locator = nil,
}, },
}, },
}, },