mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 00:26:45 +00:00
Compare commits
1 commit
d7351f0021
...
4033a24038
Author | SHA1 | Date | |
---|---|---|---|
|
4033a24038 |
1 changed files with 4 additions and 6 deletions
|
@ -10,11 +10,7 @@ in {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
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`.";
|
||||||
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" {
|
||||||
|
@ -40,7 +36,9 @@ 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 = "{ ruby = [\".*\"]; }";
|
example = {
|
||||||
|
ruby = [".*"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
suffixAsFiletype = mkOption {
|
suffixAsFiletype = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue