Compare commits
12 Commits
a81f0a2041
...
add_overla
| Author | SHA1 | Date | |
|---|---|---|---|
|
36d278d0a2
|
|||
|
6db8579d0b
|
|||
|
8f2b1b05e9
|
|||
|
10b64505cb
|
|||
|
81a8a3fb5d
|
|||
|
237d5e6a66
|
|||
|
dce3a89665
|
|||
|
b660608fb3
|
|||
| 9652f4cb75 | |||
| df0441425f | |||
| 6347d51dc2 | |||
| 3c95acb92e |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
result
|
||||||
1
.nixd.json
Normal file
1
.nixd.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"formatting":{"command":"alejandra"}}
|
||||||
5
flake.lock
generated
5
flake.lock
generated
@@ -10,10 +10,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"id": "nixpkgs",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"type": "indirect"
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|||||||
78
flake.nix
78
flake.nix
@@ -2,31 +2,71 @@
|
|||||||
description = "A very basic flake";
|
description = "A very basic flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
}: let
|
}: let
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
|
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
|
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
|
||||||
|
additionalDeps = pkgs: [
|
||||||
|
pkgs.alejandra
|
||||||
|
pkgs.ccls
|
||||||
|
pkgs.gopls
|
||||||
|
pkgs.luaformatter
|
||||||
|
pkgs.nixd
|
||||||
|
pkgs.pyright
|
||||||
|
pkgs.rust-analyzer
|
||||||
|
pkgs.sumneko-lua-language-server
|
||||||
|
pkgs.svls
|
||||||
|
pkgs.texlab
|
||||||
|
pkgs.tree-sitter
|
||||||
|
pkgs.verible
|
||||||
|
pkgs.zls
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
nvim = pkgs.mkShell {
|
packages = forAllSystems (system: let
|
||||||
nativeBuildInputs = [
|
pkgs = nixpkgsFor.${system};
|
||||||
pkgs.alejandra
|
in {
|
||||||
pkgs.ccls
|
nvim = import ./nvim-lsp.nix {inherit pkgs;};
|
||||||
pkgs.luaformatter
|
});
|
||||||
pkgs.nixd
|
|
||||||
pkgs.pyright
|
devShells = forAllSystems (system: let
|
||||||
pkgs.rust-analyzer
|
pkgs = nixpkgsFor.${system};
|
||||||
pkgs.sumneko-lua-language-server
|
vim = self.packages.${system};
|
||||||
pkgs.svls
|
in {
|
||||||
pkgs.texlab
|
default = pkgs.mkShell {
|
||||||
pkgs.tree-sitter
|
nativeBuildInputs = [
|
||||||
pkgs.verible
|
pkgs.alejandra
|
||||||
pkgs.zls
|
pkgs.ccls
|
||||||
(import ./nvim-lsp.nix {inherit pkgs;})
|
pkgs.gopls
|
||||||
];
|
pkgs.luaformatter
|
||||||
};
|
pkgs.nixd
|
||||||
|
pkgs.pyright
|
||||||
|
pkgs.rust-analyzer
|
||||||
|
pkgs.sumneko-lua-language-server
|
||||||
|
pkgs.svls
|
||||||
|
pkgs.texlab
|
||||||
|
pkgs.tree-sitter
|
||||||
|
pkgs.verible
|
||||||
|
pkgs.zls
|
||||||
|
vim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
overlays = forAllSystems (system: let
|
||||||
|
pkgs = nixpkgsFor.${system};
|
||||||
|
in {
|
||||||
|
overlay = final: prev: {
|
||||||
|
inherit (self.packages.${system}) nvim;
|
||||||
|
inherit additionalDeps;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
defaultPackage = forAllSystems (system: self.packages.${system}.nvim);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
21
nvim-lsp.nix
21
nvim-lsp.nix
@@ -11,7 +11,7 @@
|
|||||||
(nvim-treesitter.withPlugins (parsers: [
|
(nvim-treesitter.withPlugins (parsers: [
|
||||||
parsers.c
|
parsers.c
|
||||||
parsers.cpp
|
parsers.cpp
|
||||||
parsers.go
|
parsers.go
|
||||||
parsers.json
|
parsers.json
|
||||||
parsers.latex
|
parsers.latex
|
||||||
parsers.lua
|
parsers.lua
|
||||||
@@ -29,13 +29,13 @@
|
|||||||
cmp-nvim-ultisnips
|
cmp-nvim-ultisnips
|
||||||
cmp-path
|
cmp-path
|
||||||
colorizer
|
colorizer
|
||||||
|
editorconfig-nvim
|
||||||
fugitive
|
fugitive
|
||||||
fzf-lua
|
fzf-lua
|
||||||
gopls
|
|
||||||
gruvbox
|
gruvbox
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
nvim-ts-rainbow
|
rainbow-delimiters-nvim
|
||||||
repeat
|
repeat
|
||||||
targets-vim
|
targets-vim
|
||||||
UltiSnips
|
UltiSnips
|
||||||
@@ -45,6 +45,21 @@
|
|||||||
vim-snippets
|
vim-snippets
|
||||||
zig-vim
|
zig-vim
|
||||||
];
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.alejandra
|
||||||
|
pkgs.ccls
|
||||||
|
pkgs.gopls
|
||||||
|
pkgs.luaformatter
|
||||||
|
pkgs.nixd
|
||||||
|
pkgs.pyright
|
||||||
|
pkgs.rust-analyzer
|
||||||
|
pkgs.sumneko-lua-language-server
|
||||||
|
pkgs.svls
|
||||||
|
pkgs.texlab
|
||||||
|
pkgs.tree-sitter
|
||||||
|
pkgs.verible
|
||||||
|
pkgs.zls
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user