feat(nvim): add gitignore nvim
This commit is contained in:
parent
d902903984
commit
b1a6d5016a
4 changed files with 32 additions and 3 deletions
17
flake.lock
17
flake.lock
|
@ -370,6 +370,22 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -852,6 +868,7 @@
|
|||
"copilot-lua": "copilot-lua",
|
||||
"emacs": "emacs",
|
||||
"flake-utils": "flake-utils_3",
|
||||
"gitignore-nvim": "gitignore-nvim",
|
||||
"home-manager": "home-manager",
|
||||
"howdy": "howdy",
|
||||
"hypr-contrib": "hypr-contrib",
|
||||
|
|
|
@ -61,6 +61,9 @@
|
|||
comment-box-nvim.url = "github:LudoPinelli/comment-box.nvim";
|
||||
comment-box-nvim.flake = false;
|
||||
|
||||
gitignore-nvim.url = "github:wintermute-cell/gitignore.nvim";
|
||||
gitignore-nvim.flake = false;
|
||||
|
||||
attic.url = "github:zhaofengli/attic";
|
||||
attic.inputs.nixpkgs.follows = "nixpkgs";
|
||||
attic.inputs.nixpkgs-stable.follows = "stable";
|
||||
|
|
3
modules/programs/nvim/plugins/gitignore-nvim.lua
Normal file
3
modules/programs/nvim/plugins/gitignore-nvim.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
require("which-key").register({
|
||||
i = { "<cmd>Gitignore<cr>", "Create .gitignore" },
|
||||
}, { prefix = "<leader>g" })
|
|
@ -1,6 +1,6 @@
|
|||
{ inputs, lib }:
|
||||
|
||||
final: prev:
|
||||
_: prev:
|
||||
with lib.my;
|
||||
{
|
||||
vimPlugins = prev.vimPlugins // {
|
||||
|
@ -16,12 +16,12 @@ with lib.my;
|
|||
src = inputs.smartcolumn-nvim;
|
||||
};
|
||||
|
||||
copilot-lua = prev.vimPlugins.copilot-lua.overrideAttrs (old: {
|
||||
copilot-lua = prev.vimPlugins.copilot-lua.overrideAttrs (_: {
|
||||
version = mkVersionInput 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;
|
||||
src = inputs.lspsaga-nvim;
|
||||
});
|
||||
|
@ -37,5 +37,11 @@ with lib.my;
|
|||
version = mkVersionInput 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue