Compare commits

...

2 commits

Author SHA1 Message Date
jacekpoz
ef9b08a462
plugins/new-file-template: improve documentation 2024-08-07 17:11:17 +02:00
jacekpoz
5d219a0a7b
plugins/new-file-template: fix disableSpecific example 2024-08-02 19:08:32 +02:00

View file

@ -10,7 +10,11 @@ in {
enable = mkOption { enable = mkOption {
type = bool; type = bool;
default = false; default = false;
description = "new-file-template.nvim: Automatically insert a template on new files in neovim. To add custom templates add a directory containing `lua/templates/*.lua` to `vim.additionalRuntimePaths`."; description = ''
new-file-template.nvim: Automatically insert a template on new files in neovim.
To add custom templates add a directory containing `lua/templates/*.lua` to `vim.additionalRuntimePaths`.
More documentation on the templates available at https://github.com/otavioschwanck/new-file-template.nvim?tab=readme-ov-file#creating-new-templates
'';
}; };
setupOpts = mkPluginSetupOption "nvim-file-template.nvim" { setupOpts = mkPluginSetupOption "nvim-file-template.nvim" {
@ -36,9 +40,7 @@ in {
type = attrsOf (listOf str); type = attrsOf (listOf str);
default = {}; default = {};
description = "Disable specific regexp for the default templates. Example: { ruby = [ \".*\" ]; }"; description = "Disable specific regexp for the default templates. Example: { ruby = [ \".*\" ]; }";
example = { example = "{ ruby = [\".*\"]; }";
ruby = [".*"];
};
}; };
suffixAsFiletype = mkOption { suffixAsFiletype = mkOption {