feat(editor): remove standalone snippets package, move config to nvf module
This commit is contained in:
parent
50e0d971ae
commit
3b5eefe456
6 changed files with 16 additions and 63 deletions
|
@ -1,8 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs.vimUtils) buildVimPlugin;
|
||||
in
|
||||
buildVimPlugin {
|
||||
name = "snippets";
|
||||
src = ./.;
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"name": "snippets",
|
||||
"engines": {
|
||||
"vscode": "^1.11.0"
|
||||
},
|
||||
"contributes": {
|
||||
"snippets": [
|
||||
{
|
||||
"language": "nix",
|
||||
"path": "./snippets/nix.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue