robin/ivy

my custom neovim config

git clone https://git.robinwobin.dev/robin/ivy

robinsnippets: use mini.snippetse116512

main
525 B28 linesraw
1{
2  "mks": {
3    "prefix": "mkshell",
4    "description": "Nix development shell",
5    "body": [
6      "{ pkgs ? import <nixpkgs> {} }:",
7      "pkgs.mkShell {",
8      "  buildInputs = with pkgs; [",
9      "    $1",
10      "  ];",
11      "}"
12    ]
13  },
14  "mod": {
15    "prefix": "mod",
16    "description": "Nix module",
17    "body": [
18      "{ lib, pkgs, config ... }:",
19      "let",
20      "  cfg = config.${1};",
21      "in {",
22      "  config = lib.mkIf cfg.enable {",
23      "    ${2:# code}",
24      "  };",
25      "}"
26    ]
27  }
28}