blob: 2a186aca23bb1f3d8997b94e43ad12ed97b2d198 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.getchoo.programs.neovim;
inherit (lib) mkEnableOption mkIf;
in {
options.getchoo.programs.neovim.enable = mkEnableOption "neovim" // {default = true;};
config = mkIf cfg.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
actionlint
alejandra
beautysh
codespell
deadnix
just
nil
nodePackages.alex
shellcheck
statix
stylua
sumneko-lua-language-server
];
plugins = with pkgs.vimPlugins; [
# general
catppuccin-nvim
# TODO: don't pin when deprecation notice
# is no longer in nixpkgs
(fidget-nvim.overrideAttrs (_: {
src = pkgs.fetchFromGitHub {
owner = "j-hui";
repo = "fidget.nvim";
rev = "41f327b53c7977d47aee56f05e0bdbb4b994c5eb";
hash = "sha256-v9qARsW8Gozit4Z3+igiemjI467QgRhwM+crqwO9r6U=";
};
}))
flash-nvim
gitsigns-nvim
indent-blankline-nvim
lualine-nvim
neo-tree-nvim
nvim-web-devicons
mini-nvim
# completion
nvim-cmp
cmp-nvim-lsp
cmp-buffer
cmp_luasnip
cmp-async-path
luasnip
# ui
dressing-nvim
noice-nvim
nui-nvim
nvim-notify
# lsp
nvim-lspconfig
null-ls-nvim
pkgs.vim-just
## utils
bufferline-nvim
plenary-nvim
telescope-nvim
trouble-nvim
which-key-nvim
# treesitter
nvim-treesitter.withAllGrammars
nvim-ts-context-commentstring
];
extraLuaConfig = ''
require("getchoo")
'';
};
xdg.configFile."nvim/lua/getchoo" = {
source = ./config;
recursive = true;
};
};
}
|