add d2 vim plugin

This commit is contained in:
Jeremy Wall 2024-01-28 17:16:20 -05:00
parent 248b7bf232
commit f30dcd048a
4 changed files with 55 additions and 15 deletions

View File

@ -20,6 +20,22 @@
"type": "github"
}
},
"d2-vim-src": {
"flake": false,
"locked": {
"lastModified": 1675176182,
"narHash": "sha256-+mT4pEbtq7f9ZXhOop3Jnjr7ulxU32VtahffIwQqYF4=",
"owner": "terrastruct",
"repo": "d2-vim",
"rev": "981c87dccb63df2887cc41b96e84bf550f736c57",
"type": "github"
},
"original": {
"owner": "terrastruct",
"repo": "d2-vim",
"type": "github"
}
},
"darwin": {
"inputs": {
"nixpkgs": [
@ -236,11 +252,11 @@
"harpoon-src": {
"flake": false,
"locked": {
"lastModified": 1703800925,
"narHash": "sha256-WD93Oq1WHrfkdOVbYDJiExr+MP1Uezl5WKA53jEdwmY=",
"lastModified": 1706306053,
"narHash": "sha256-RjwNUuKQpLkRBX3F9o25Vqvpu3Ah1TCFQ5Dk4jXhsbI=",
"owner": "ThePrimeagen",
"repo": "harpoon",
"rev": "6afc142443f8135329f8dd09b77e229f65001c0c",
"rev": "a38be6e0dd4c6db66997deab71fc4453ace97f9c",
"type": "github"
},
"original": {
@ -506,6 +522,7 @@
"root": {
"inputs": {
"agenix-flake": "agenix-flake",
"d2-vim-src": "d2-vim-src",
"durnitisp-flake": "durnitisp-flake",
"harpoon-src": "harpoon-src",
"jj-flake": "jj-flake",

View File

@ -18,6 +18,10 @@
url = "github:ThePrimeagen/harpoon/harpoon2";
flake = false;
};
d2-vim-src = {
url = "github:terrastruct/d2-vim";
flake = false;
};
# We need to pin to this version of treesitter because it breaks after this revision
treesitter-context = {
url = "github:nvim-treesitter/nvim-treesitter-context/e6b743ccd4e780bc9cd85b707de67df72eea1a23";
@ -39,6 +43,7 @@
nil-flake,
nurl-flake,
harpoon-src,
d2-vim-src,
treesitter-context,
roslyn-lsp,
nixpkgs,
@ -54,9 +59,15 @@
inherit (pkgs.vimUtils) buildVimPlugin;
inherit (pkgs) fetchFromGitHub;
};
harpoon-nvim = pkgs.callPackage ./harpoon-nvim.nix {
inherit (pkgs.vimUtils) buildVimPlugin;
harpoonSrc = harpoon-src;
harpoon-nvim = pkgs.vimUtils.buildVimPlugin {
pname = "harpoon";
version = "2024-01-28";
src = harpoon-src;
};
d2-vim = pkgs.vimUtils.buildVimPlugin {
pname = "d2-nvim";
version = "2024-01-28";
src = d2-vim-src;
};
nvim-treesitter-context = pkgs.vimUtils.buildVimPlugin {
name = "nvim-treesitter-context";
@ -153,7 +164,7 @@ EOF";
vim-dadbod
vim-dadbod-ui
vim-dadbod-completion
]) ++ [ possession-nvim harpoon-nvim ];
]) ++ [ possession-nvim harpoon-nvim d2-vim ];
};
};
};

View File

@ -1,5 +0,0 @@
{buildVimPlugin, harpoonSrc, ...}:
buildVimPlugin {
name = "harpoon";
src = harpoonSrc;
}

23
nix/darwin/flake.lock generated
View File

@ -23,6 +23,7 @@
"base-system": {
"inputs": {
"agenix-flake": "agenix-flake",
"d2-vim-src": "d2-vim-src",
"durnitisp-flake": "durnitisp-flake",
"harpoon-src": "harpoon-src",
"jj-flake": "jj-flake",
@ -37,15 +38,31 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-Uat1zSsHZfJ0lf1Ya9aW8r0mjBNtbt8woaSmHNyDGRA=",
"path": "/nix/store/4kzm062qwsfzq1vza029ic4lx9zpdy8p-source/nix/base-system",
"narHash": "sha256-0oGq3sK7ihOgO60F4x7xsYeeLKfLSVjia4sgVCjxKhc=",
"path": "/nix/store/mfyhkqw0pjia0lr8mxv6n5sn3drj4qbz-source/nix/base-system",
"type": "path"
},
"original": {
"path": "/nix/store/4kzm062qwsfzq1vza029ic4lx9zpdy8p-source/nix/base-system",
"path": "/nix/store/mfyhkqw0pjia0lr8mxv6n5sn3drj4qbz-source/nix/base-system",
"type": "path"
}
},
"d2-vim-src": {
"flake": false,
"locked": {
"lastModified": 1675176182,
"narHash": "sha256-+mT4pEbtq7f9ZXhOop3Jnjr7ulxU32VtahffIwQqYF4=",
"owner": "terrastruct",
"repo": "d2-vim",
"rev": "981c87dccb63df2887cc41b96e84bf550f736c57",
"type": "github"
},
"original": {
"owner": "terrastruct",
"repo": "d2-vim",
"type": "github"
}
},
"darwin": {
"inputs": {
"nixpkgs": [