feat(editor): remove standalone snippets package, move config to nvf module

This commit is contained in:
Mohammad Rafiq 2025-06-18 20:51:19 +08:00
parent 50e0d971ae
commit 3b5eefe456
No known key found for this signature in database
6 changed files with 16 additions and 63 deletions

View file

@ -5,23 +5,21 @@
setupOpts.enable_autosnippets = true;
providers = with pkgs.vimPlugins; [ vim-snippets ];
customSnippets.snipmate = {
all = [
{
trigger = "if";
body = "if $1 else $2";
}
];
nix = [
{
trigger = "mkOption";
body = ''
mkOption {
type = $1;
default = $2;
description = $3;
example = $4;
}
'';
trigger = "mod";
description = "empty module";
body = # nix
''
{config, lib}:
let
cfg = config.$1;
in
{
options.$1 = { $2 };
config = $3;
}
'';
}
];
};

View file

@ -7,8 +7,6 @@ in
persistDirs = singleton ".local/share/nvf";
programs.nvf.enable = true;
programs.nvf.settings.vim = {
startPlugins = [ pkgs.pantheon.snippets ];
hideSearchHighlight = true;
syntaxHighlighting = true;
telescope.enable = true;