mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 04:14:28 +02:00
plugins/ts-autotag: switch to mkNeovimPlugin
This commit is contained in:
parent
7087b6014d
commit
b822078ec1
2 changed files with 138 additions and 102 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue