mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
Compare commits
1 commit
383ce4472d
...
3b1a9fdc89
Author | SHA1 | Date | |
---|---|---|---|
|
3b1a9fdc89 |
8 changed files with 4 additions and 97 deletions
|
@ -83,7 +83,7 @@ Release notes for release 0.5
|
|||
|
||||
- Updated indent-blankine.nvim to v3 - this comes with a few option changes, which will be migrated with `renamedOptionModule`
|
||||
|
||||
[jacekpoz](https://jacekpoz.pl):
|
||||
[jacekpoz](https://github.com/jacekpoz):
|
||||
|
||||
- Fixed scrollOffset not being used
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ vim.api.nvim_set_keymap('n', '<leader>a', ':lua camelToSnake()<CR>', { noremap =
|
|||
|
||||
- Added rose-pine theme.
|
||||
|
||||
[jacekpoz](https://jacekpoz.pl):
|
||||
[jacekpoz](https://github.com/jacekpoz):
|
||||
|
||||
- Added `vim.autocomplete.alwaysComplete`. Allows users to have the autocomplete window popup only when manually activated.
|
||||
|
||||
|
|
|
@ -62,17 +62,14 @@ configuration formats.
|
|||
recommended to go through rustacean.nvim's README to take a closer look at its
|
||||
features and usage
|
||||
|
||||
[jacekpoz](https://jacekpoz.pl):
|
||||
[jacekpoz](https://github.com/jacekpoz):
|
||||
|
||||
[ocaml-lsp]: https://github.com/ocaml/ocaml-lsp
|
||||
[new-file-template.nvim]: https://github.com/otavioschwanck/new-file-template.nvim
|
||||
|
||||
- Add [ocaml-lsp] support
|
||||
|
||||
- Fix "Emac" typo
|
||||
|
||||
- Add [new-file-template.nvim] to automatically fill new file contents using templates.
|
||||
|
||||
[diniamo](https://github.com/diniamo):
|
||||
|
||||
- Move the `theme` dag entry to before `luaScript`.
|
||||
|
|
|
@ -628,15 +628,9 @@
|
|||
};
|
||||
|
||||
plugin-nvim-nio = {
|
||||
# (required by nvim-dap-ui)
|
||||
# (required nvim-dap-ui)
|
||||
url = "github:nvim-neotest/nvim-nio";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-new-file-template-nvim = {
|
||||
# (required by new-file-template.nvim)
|
||||
url = "github:otavioschwanck/new-file-template.nvim";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
./ccc
|
||||
./gestures
|
||||
./motion
|
||||
./new-file-template
|
||||
./telescope
|
||||
./icon-picker
|
||||
./images
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.utility.new-file-template;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [
|
||||
"new-file-template-nvim"
|
||||
];
|
||||
|
||||
pluginRC.new-file-template = entryAnywhere ''
|
||||
require('new-file-template').setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./new-file-template.nix
|
||||
];
|
||||
}
|
|
@ -1,54 +0,0 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) attrsOf bool listOf str;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.utility.new-file-template = {
|
||||
enable = mkOption {
|
||||
type = bool;
|
||||
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]
|
||||
'';
|
||||
};
|
||||
|
||||
setupOpts = mkPluginSetupOption "nvim-file-template.nvim" {
|
||||
disableInsert = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = "Enter insert mode after inserting the template";
|
||||
};
|
||||
|
||||
disableAutocmd = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = "Disable the autocmd that creates the template";
|
||||
};
|
||||
|
||||
disableFiletype = mkOption {
|
||||
type = listOf str;
|
||||
default = [];
|
||||
description = "Disable default templates for specific filetypes";
|
||||
};
|
||||
|
||||
disableSpecific = mkOption {
|
||||
type = attrsOf (listOf str);
|
||||
default = {};
|
||||
description = "Disable specific regexp for the default templates.";
|
||||
example = "{ ruby = [\".*\"]; }";
|
||||
};
|
||||
|
||||
suffixAsFiletype = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = "Use suffix of filename rather than `vim.bo.filetype` as filetype";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue