feat(nvim): add comment-box.nvim

nixos
Moritz Böhme 2023-04-05 08:51:06 +02:00
parent d6fbbb945c
commit 8a6cdf7632
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
4 changed files with 51 additions and 16 deletions

View File

@ -98,6 +98,22 @@
"type": "github" "type": "github"
} }
}, },
"comment-box-nvim": {
"flake": false,
"locked": {
"lastModified": 1678772374,
"narHash": "sha256-hD9eCcrDsispi+Nvwjy/MlNW0UmFfSbh8arQpCjeneM=",
"owner": "LudoPinelli",
"repo": "comment-box.nvim",
"rev": "6672213bd5d2625a666a297b66307967effa50bc",
"type": "github"
},
"original": {
"owner": "LudoPinelli",
"repo": "comment-box.nvim",
"type": "github"
}
},
"copilot-lua": { "copilot-lua": {
"flake": false, "flake": false,
"locked": { "locked": {

View File

@ -1,10 +1,11 @@
{ {
description = "My awesome system config"; description = "My awesome system config";
############## /*
### Inputs ###
############## Inputs
*/
inputs = { inputs = {
master.url = "github:nixos/nixpkgs"; master.url = "github:nixos/nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
@ -66,12 +67,20 @@
advanced-git-search-nvim.url = "github:aaronhallaert/advanced-git-search.nvim"; advanced-git-search-nvim.url = "github:aaronhallaert/advanced-git-search.nvim";
advanced-git-search-nvim.flake = false; advanced-git-search-nvim.flake = false;
comment-box-nvim.url = "github:LudoPinelli/comment-box.nvim";
comment-box-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";
attic.inputs.flake-utils.follows = "flake-utils"; attic.inputs.flake-utils.follows = "flake-utils";
}; };
/*
Outputs
*/
outputs = outputs =
inputs@{ self, nixpkgs, utils, ... }: inputs@{ self, nixpkgs, utils, ... }:
utils.lib.mkFlake { utils.lib.mkFlake {
@ -84,10 +93,11 @@
lib = nixpkgs.lib.extend lib = nixpkgs.lib.extend
(self: super: { my = import ./lib { lib = self; }; }); (self: super: { my = import ./lib { lib = self; }; });
################ /*
### Overlays ###
################ Overlays
*/
overlay = import ./overlays { overlay = import ./overlays {
inherit inputs; inherit inputs;
inherit (self) lib; inherit (self) lib;
@ -108,10 +118,11 @@
overlays.default = self.overlay; overlays.default = self.overlay;
############### /*
### Modules ###
############### Modules
*/
nixosModules = utils.lib.exportModules [ nixosModules = utils.lib.exportModules [
./modules/profiles/base.nix ./modules/profiles/base.nix
./modules/profiles/gaming.nix ./modules/profiles/gaming.nix
@ -148,10 +159,11 @@
self.nixosModules.gaming self.nixosModules.gaming
]; ];
############### /*
### Outputs ###
############### Other Outputs
*/
outputsBuilder = channels: outputsBuilder = channels:
with channels.nixpkgs; { with channels.nixpkgs; {
devShells.default = mkShell { devShells.default = mkShell {

View File

@ -0,0 +1 @@
require("comment-box").setup()

View File

@ -31,5 +31,11 @@ with lib.my;
version = mkVersionInput inputs.advanced-git-search-nvim; version = mkVersionInput inputs.advanced-git-search-nvim;
src = inputs.advanced-git-search-nvim; src = inputs.advanced-git-search-nvim;
}; };
comment-box-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "comment-box-nvim";
version = mkVersionInput inputs.comment-box-nvim;
src = inputs.comment-box-nvim;
};
}; };
} }