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

@ -1,8 +0,0 @@
{ pkgs, ... }:
let
inherit (pkgs.vimUtils) buildVimPlugin;
in
buildVimPlugin {
name = "snippets";
src = ./.;
}

View file

@ -1,15 +0,0 @@
{
"name": "snippets",
"engines": {
"vscode": "^1.11.0"
},
"contributes": {
"snippets": [
{
"language": "nix",
"path": "./snippets/nix.json"
}
]
}
}

View file

@ -1,20 +0,0 @@
{
"module": {
"prefix": "mod",
"body": [
"{ config, lib, ... }:",
"let",
" inherit (lib) mkIf mkEnableOption;",
" cfg = config.$1;",
"in",
"{",
" options.$1 = {",
" enable = mkEnableOption \"$2\";",
" $3",
" };",
" config = mkIf cfg.enable {$4};",
"}"
],
"description": "empty module"
}
}