blob: ef97f898b65040106c433a11432656e60a5e49b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkEnableOption mkIf optionals;
cfg = config.nx.editors.neovim;
in
{
options.nx.editors.neovim = {
enable = mkEnableOption "Neovim editor";
};
config = mkIf cfg.enable {
programs.neovim = {
defaultEditor = true;
enable = true;
package = pkgs.neovim-unwrapped;
extraPackages =
with pkgs;
[
tree-sitter
git
ripgrep
fd
gcc
]
++ (optionals true [ pkgs.gopls ])
++ (optionals true [
pkgs.nil
pkgs.nixfmt
])
++ (optionals true [ pkgs.lua-language-server ])
++ (optionals true [ pkgs.texlab ])
++ (optionals true [ pkgs.tinymist ]);
plugins = with pkgs.vimPlugins; [
gruvbox-nvim
mini-starter
gitsigns-nvim
nvim-autopairs
telescope-nvim
fidget-nvim
plenary-nvim
nvim-treesitter.withAllGrammars
nvim-lspconfig
nvim-cmp
cmp-nvim-lsp
cmp-buffer
cmp-path
cmp-cmdline
luasnip
cmp_luasnip
lspkind-nvim
];
extraConfig = ''
luafile ${./init.lua}
'';
};
};
}
|