diff --git a/modules/plugins/utility/new-file-template/new-file-template.nix b/modules/plugins/utility/new-file-template/new-file-template.nix index 167d2b0b..6b86a60b 100644 --- a/modules/plugins/utility/new-file-template/new-file-template.nix +++ b/modules/plugins/utility/new-file-template/new-file-template.nix @@ -1,4 +1,7 @@ -{lib, ...}: let +{ + lib, + ... +}: let inherit (lib.options) mkOption; inherit (lib.types) attrsOf bool listOf str; inherit (lib.nvim.types) mkPluginSetupOption; @@ -9,12 +12,8 @@ in { default = false; description = '' new-file-template.nvim: Automatically insert a template on new files in neovim. - ::: {.note} - For custom templates add a directory containing `lua/templates/*.lua` - to `vim.additionalRuntimePaths`. - ::: - [custom-template-docs]: https://github.com/otavioschwanck/new-file-template.nvim?tab=readme-ov-file#creating-new-templates - More documentation on the templates available at [custom-template-docs] + 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 ''; }; @@ -34,20 +33,20 @@ in { disableFiletype = mkOption { type = listOf str; default = []; - description = "Disable default templates for specific filetypes"; + description = "Disable templates for specific filetypes (only disables default templates, user templates will still work)"; }; disableSpecific = mkOption { type = attrsOf (listOf str); default = {}; - description = "Disable specific regexp for the default templates."; + description = "Disable specific regexp for the default templates. Example: { ruby = [ \".*\" ]; }"; example = "{ ruby = [\".*\"]; }"; }; suffixAsFiletype = mkOption { type = bool; default = false; - description = "Use suffix of filename rather than `vim.bo.filetype` as filetype"; + description = "Use suffix of filename rather than vim.bo.filetype as filetype"; }; }; };