mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
We used to only think of it as the plugin repo's name, but we have been needing to use it for the name of the plugin's packpath location.
89 lines
2.3 KiB
Nix
89 lines
2.3 KiB
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|
name = "ts-comments";
|
|
packPathName = "ts-comments.nvim";
|
|
package = "ts-comments-nvim";
|
|
|
|
maintainers = [ lib.maintainers.khaneliman ];
|
|
|
|
settingsOptions = {
|
|
lang =
|
|
lib.nixvim.defaultNullOpts.mkAttrsOf lib.types.anything
|
|
{
|
|
astro = "";
|
|
axaml = "";
|
|
blueprint = "// %s";
|
|
c = "// %s";
|
|
c_sharp = "// %s";
|
|
clojure = [
|
|
";; %s"
|
|
"; %s"
|
|
];
|
|
cpp = "// %s";
|
|
cs_project = "";
|
|
cue = "// %s";
|
|
fsharp = "// %s";
|
|
fsharp_project = "";
|
|
gleam = "// %s";
|
|
glimmer = "{{! %s }}";
|
|
graphql = "# %s";
|
|
handlebars = "{{! %s }}";
|
|
hcl = "# %s";
|
|
html = "";
|
|
hyprlang = "# %s";
|
|
ini = "; %s";
|
|
ipynb = "# %s";
|
|
javascript = {
|
|
__unkeyed-1 = "// %s";
|
|
__unkeyed-2 = "/* %s */";
|
|
call_expression = "// %s";
|
|
jsx_attribute = "// %s";
|
|
jsx_element = "{/* %s */}";
|
|
jsx_fragment = "{/* %s */}";
|
|
spread_element = "// %s";
|
|
statement_block = "// %s";
|
|
};
|
|
kdl = "// %s";
|
|
php = "// %s";
|
|
rego = "# %s";
|
|
rescript = "// %s";
|
|
rust = [
|
|
"// %s"
|
|
"/* %s */"
|
|
];
|
|
sql = "-- %s";
|
|
styled = "/* %s */";
|
|
svelte = "";
|
|
templ = {
|
|
__default = "// %s";
|
|
component_block = "";
|
|
};
|
|
terraform = "# %s";
|
|
tsx = {
|
|
__default = "// %s";
|
|
"/* %s */" = null;
|
|
call_expression = "// %s";
|
|
jsx_attribute = "// %s";
|
|
jsx_element = "{/* %s */}";
|
|
jsx_fragment = "{/* %s */}";
|
|
spread_element = "// %s";
|
|
statement_block = "// %s";
|
|
};
|
|
twig = "{# %s #}";
|
|
typescript = [
|
|
"// %s"
|
|
"/* %s */"
|
|
];
|
|
vue = "";
|
|
xaml = "";
|
|
}
|
|
''
|
|
Configure comment string for each language.
|
|
|
|
`ts-comments.nvim` uses the default Neovim `commentstring` as a fallback, so there's no need to configure every language.
|
|
'';
|
|
};
|
|
}
|