mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
Compare commits
4 commits
ef9b08a462
...
356d512b43
Author | SHA1 | Date | |
---|---|---|---|
|
356d512b43 | ||
|
94ecdca96d | ||
|
0c748f9991 | ||
|
330154e44e |
1 changed files with 10 additions and 9 deletions
|
@ -1,7 +1,4 @@
|
||||||
{
|
{lib, ...}: let
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.options) mkOption;
|
inherit (lib.options) mkOption;
|
||||||
inherit (lib.types) attrsOf bool listOf str;
|
inherit (lib.types) attrsOf bool listOf str;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
@ -12,8 +9,12 @@ in {
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
new-file-template.nvim: Automatically insert a template on new files in neovim.
|
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`.
|
::: {.note}
|
||||||
More documentation on the templates available at https://github.com/otavioschwanck/new-file-template.nvim?tab=readme-ov-file#creating-new-templates
|
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]
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33,20 +34,20 @@ in {
|
||||||
disableFiletype = mkOption {
|
disableFiletype = mkOption {
|
||||||
type = listOf str;
|
type = listOf str;
|
||||||
default = [];
|
default = [];
|
||||||
description = "Disable templates for specific filetypes (only disables default templates, user templates will still work)";
|
description = "Disable default templates for specific filetypes";
|
||||||
};
|
};
|
||||||
|
|
||||||
disableSpecific = mkOption {
|
disableSpecific = mkOption {
|
||||||
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 = "{ ruby = [\".*\"]; }";
|
||||||
};
|
};
|
||||||
|
|
||||||
suffixAsFiletype = mkOption {
|
suffixAsFiletype = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = false;
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue