feat(nvim): add gitignore nvim

This commit is contained in:
Moritz Böhme 2023-04-10 14:36:40 +02:00
parent d902903984
commit b1a6d5016a
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
4 changed files with 32 additions and 3 deletions

View file

@ -370,6 +370,22 @@
"type": "github" "type": "github"
} }
}, },
"gitignore-nvim": {
"flake": false,
"locked": {
"lastModified": 1680653909,
"narHash": "sha256-H6IXZTskIAOmp3U57NIT4Of45xXqrX/6VRm1s28S89Y=",
"owner": "wintermute-cell",
"repo": "gitignore.nvim",
"rev": "b61e4a50b78f9a3702a4ed168ab6c9ceba5f6299",
"type": "github"
},
"original": {
"owner": "wintermute-cell",
"repo": "gitignore.nvim",
"type": "github"
}
},
"gitignore_2": { "gitignore_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -852,6 +868,7 @@
"copilot-lua": "copilot-lua", "copilot-lua": "copilot-lua",
"emacs": "emacs", "emacs": "emacs",
"flake-utils": "flake-utils_3", "flake-utils": "flake-utils_3",
"gitignore-nvim": "gitignore-nvim",
"home-manager": "home-manager", "home-manager": "home-manager",
"howdy": "howdy", "howdy": "howdy",
"hypr-contrib": "hypr-contrib", "hypr-contrib": "hypr-contrib",

View file

@ -61,6 +61,9 @@
comment-box-nvim.url = "github:LudoPinelli/comment-box.nvim"; comment-box-nvim.url = "github:LudoPinelli/comment-box.nvim";
comment-box-nvim.flake = false; comment-box-nvim.flake = false;
gitignore-nvim.url = "github:wintermute-cell/gitignore.nvim";
gitignore-nvim.flake = false;
attic.url = "github:zhaofengli/attic"; attic.url = "github:zhaofengli/attic";
attic.inputs.nixpkgs.follows = "nixpkgs"; attic.inputs.nixpkgs.follows = "nixpkgs";
attic.inputs.nixpkgs-stable.follows = "stable"; attic.inputs.nixpkgs-stable.follows = "stable";

View file

@ -0,0 +1,3 @@
require("which-key").register({
i = { "<cmd>Gitignore<cr>", "Create .gitignore" },
}, { prefix = "<leader>g" })

View file

@ -1,6 +1,6 @@
{ inputs, lib }: { inputs, lib }:
final: prev: _: prev:
with lib.my; with lib.my;
{ {
vimPlugins = prev.vimPlugins // { vimPlugins = prev.vimPlugins // {
@ -16,12 +16,12 @@ with lib.my;
src = inputs.smartcolumn-nvim; src = inputs.smartcolumn-nvim;
}; };
copilot-lua = prev.vimPlugins.copilot-lua.overrideAttrs (old: { copilot-lua = prev.vimPlugins.copilot-lua.overrideAttrs (_: {
version = mkVersionInput inputs.copilot-lua; version = mkVersionInput inputs.copilot-lua;
src = inputs.copilot-lua; src = inputs.copilot-lua;
}); });
lspsaga-nvim-original = prev.vimPlugins.lspsaga-nvim-original.overrideAttrs (old: { lspsaga-nvim-original = prev.vimPlugins.lspsaga-nvim-original.overrideAttrs (_: {
version = mkVersionInput inputs.lspsaga-nvim; version = mkVersionInput inputs.lspsaga-nvim;
src = inputs.lspsaga-nvim; src = inputs.lspsaga-nvim;
}); });
@ -37,5 +37,11 @@ with lib.my;
version = mkVersionInput inputs.comment-box-nvim; version = mkVersionInput inputs.comment-box-nvim;
src = inputs.comment-box-nvim; src = inputs.comment-box-nvim;
}; };
gitignore-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "gitignore-nvim";
version = mkVersionInput inputs.gitignore-nvim;
src = inputs.gitignore-nvim;
};
}; };
} }