mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-24 19:03:49 -08:00
refactor: use flake inputs to track extra neovim plugins
This commit is contained in:
parent
4e04b1c8fa
commit
957cc89ec5
4 changed files with 95 additions and 27 deletions
|
@ -1,5 +1,5 @@
|
|||
# LSP setup
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
extraPackages = with pkgs; [
|
||||
rust-analyzer
|
||||
|
@ -26,21 +26,11 @@
|
|||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "haskell-tools-nvim";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "mrcjkb";
|
||||
repo = "haskell-tools.nvim";
|
||||
rev = "959eac0fadbdd27442904a8cb363f39afb528027";
|
||||
hash = "sha256-5CS5kvUSqQJe7iFFpicinBjCQXgFPL0ElGgnrZHTT+Y=";
|
||||
};
|
||||
src = inputs.haskell-tools;
|
||||
})
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "rustaceanvim";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "mrcjkb";
|
||||
repo = "rustaceanvim";
|
||||
rev = "7cba8e599deca98d4b44cac1bcbd720c62937d90";
|
||||
hash = "sha256-OYfeJuo4FZUBdW9wGGCT0lZGYr/ur1uy8frcyUJMF3k=";
|
||||
};
|
||||
src = inputs.rustaceanvim;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Quality of life plugins
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
extraPackages = with pkgs; [
|
||||
ripgrep
|
||||
|
@ -33,21 +33,11 @@
|
|||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "satellite.nvim";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "lewis6991";
|
||||
repo = "satellite.nvim";
|
||||
rev = "777ed56e1ef45ec808df701730b6597fc4fb0fbc";
|
||||
hash = "sha256-04Js+9SB4VuCq/ACbNh5BZcolu8i8vlGU72qo5xxfpk=";
|
||||
};
|
||||
src = inputs.satellite;
|
||||
})
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "render-markdown.nvim";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "MeanderingProgrammer";
|
||||
repo = "render-markdown.nvim";
|
||||
rev = "7986be47531d652e950776536987e01dd5b55b94";
|
||||
hash = "sha256-lc++IrXzEA3M2iUFZACAZOcH2EwVqX4p0fhET+en37o=";
|
||||
};
|
||||
src = inputs.render-markdown;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
70
flake.lock
70
flake.lock
|
@ -144,6 +144,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"haskell-tools": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1725935019,
|
||||
"narHash": "sha256-M+AcprniBOBQFkhXCacAyBtFF5FZyGSG5F6e8ld+r9c=",
|
||||
"owner": "mrcjkb",
|
||||
"repo": "haskell-tools.nvim",
|
||||
"rev": "2443c3b2ab049561009d1b5712e839db546b6586",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "mrcjkb",
|
||||
"repo": "haskell-tools.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -264,11 +280,63 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"render-markdown": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1726165713,
|
||||
"narHash": "sha256-6EoJWKXePglg8hiErp1VOaI/xmYFonthHZL4s96fZXc=",
|
||||
"owner": "MeanderingProgrammer",
|
||||
"repo": "render-markdown.nvim",
|
||||
"rev": "cb935afe5bb52965e2bfc11cf7b563bb159ef4f5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "MeanderingProgrammer",
|
||||
"repo": "render-markdown.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"haskell-tools": "haskell-tools",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixvim": "nixvim"
|
||||
"nixvim": "nixvim",
|
||||
"render-markdown": "render-markdown",
|
||||
"rustaceanvim": "rustaceanvim",
|
||||
"satellite": "satellite"
|
||||
}
|
||||
},
|
||||
"rustaceanvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1726158967,
|
||||
"narHash": "sha256-wZ8SZjHSU1WnhkKx2hXgI5pLRSglOM52kOtJbB3QCds=",
|
||||
"owner": "mrcjkb",
|
||||
"repo": "rustaceanvim",
|
||||
"rev": "5610d5e01dc803717cc0b6b87625f2fbb548b49e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "mrcjkb",
|
||||
"repo": "rustaceanvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"satellite": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1725437627,
|
||||
"narHash": "sha256-5WMKEsS9e9nTuylZ5pRPIW+G/52HKC1bjSdz3GvJg+8=",
|
||||
"owner": "lewis6991",
|
||||
"repo": "satellite.nvim",
|
||||
"rev": "dfc2b220f4969ebc49b0f2a94ab6faae240705bd",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "lewis6991",
|
||||
"repo": "satellite.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
|
20
flake.nix
20
flake.nix
|
@ -6,6 +6,23 @@
|
|||
nixvim.url = "github:nix-community/nixvim";
|
||||
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
|
||||
render-markdown = {
|
||||
url = "github:MeanderingProgrammer/render-markdown.nvim";
|
||||
flake = false;
|
||||
};
|
||||
satellite = {
|
||||
url = "github:lewis6991/satellite.nvim";
|
||||
flake = false;
|
||||
};
|
||||
haskell-tools = {
|
||||
url = "github:mrcjkb/haskell-tools.nvim";
|
||||
flake = false;
|
||||
};
|
||||
rustaceanvim = {
|
||||
url = "github:mrcjkb/rustaceanvim";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
@ -33,6 +50,9 @@
|
|||
nixvim' = nixvim.legacyPackages.${system};
|
||||
nixvimModule = {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
module = import ./config;
|
||||
};
|
||||
nvim = nixvim'.makeNixvimWithModule nixvimModule;
|
||||
|
|
Loading…
Reference in a new issue