plugins/ts-autotag: switch to mkNeovimPlugin

This commit is contained in:
Gaetan Lepage 2024-06-17 09:54:18 +02:00 committed by Gaétan Lepage
parent 7087b6014d
commit b822078ec1
2 changed files with 138 additions and 102 deletions

View file

@ -11,45 +11,56 @@
treesitter.enable = true;
ts-autotag = {
enable = true;
filetypes = [
"html"
"javascript"
"typescript"
"javascriptreact"
"typescriptreact"
"svelte"
"vue"
"tsx"
"jsx"
"rescript"
"xml"
"php"
"markdown"
"astro"
"glimmer"
"handlebars"
"hbs"
];
skipTags = [
"area"
"base"
"br"
"col"
"command"
"embed"
"hr"
"img"
"slot"
"input"
"keygen"
"link"
"meta"
"param"
"source"
"track"
"wbr"
"menuitem"
];
settings = {
opts = {
enable_close = true;
enable_rename = true;
enable_close_on_slash = true;
};
aliases = {
"astro" = "html";
"eruby" = "html";
"vue" = "html";
"htmldjango" = "html";
"markdown" = "html";
"php" = "html";
"twig" = "html";
"blade" = "html";
"javascriptreact" = "typescriptreact";
"javascript.jsx" = "typescriptreact";
"typescript.tsx" = "typescriptreact";
"javascript" = "typescriptreact";
"typescript" = "typescriptreact";
"rescript" = "typescriptreact";
"handlebars" = "glimmer";
"hbs" = "glimmer";
"rust" = "rust";
};
per_filetype = { };
};
};
};
};
example = {
plugins = {
treesitter.enable = true;
ts-autotag = {
enable = true;
settings = {
opts = {
enable_close = true;
enable_rename = true;
enable_close_on_slash = false;
};
per_filetype = {
html = {
enable_close = false;
};
};
};
};
};
};