-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneovim.nix
104 lines (74 loc) · 1.78 KB
/
neovim.nix
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
94
95
96
97
98
99
100
101
102
103
{ config, lib, pkgs, ... }:
let
easygrep = pkgs.vimUtils.buildVimPlugin {
name = "vim-easygrep";
src = pkgs.fetchFromGitHub {
owner = "dkprice";
repo = "vim-easygrep";
rev = "d0c36a77cc63c22648e792796b1815b44164653a";
sha256 = "0y2p5mz0d5fhg6n68lhfhl8p4mlwkb82q337c22djs4w5zyzggbc";
};
};
in {
programs.neovim = {
enable = true;
vimAlias = true;
extraPackages = with pkgs; [ ripgrep fzf bat nerdfonts ];
plugins = with pkgs.vimPlugins; [
easygrep
vim-plug
nerdtree-git-plugin
nerdtree
#Fancy status line at the bottom
vim-airline
fzf-vim
vim-nix
nvim-treesitter
vim-grammarous
ctrlp-vim
vim-devicons
vimagit
vim-indent-guides
vim-surround
which-key-nvim
markdown-preview-nvim
registers-nvim
auto-pairs
#A collection of language packs for Vim.
vim-polyglot
git-blame-nvim
# Comment stuff out
vim-commentary
# select by indentation
vim-indent-object
# Themese
#vimPlugins.gruvbox
#tokyonight-nvim
dracula-nvim
#LSP choices
#coc-nvim
nvim-lspconfig
## Autocomplete
cmp-nvim-lsp
cmp-buffer
cmp-path
cmp-cmdline
nvim-cmp
cmp-vsnip
vim-vsnip
nvim-web-devicons
plenary-nvim
gitsigns-nvim
telescope-nvim
];
# luafile ${builtins.toString ./lua/coq.lua}
extraConfig = builtins.concatStringsSep "\n" [
''
luafile ${builtins.toString ./lua/builtins.lua}
luafile ${builtins.toString ./lua/autocomplete.lua}
luafile ${builtins.toString ./lua/nvim-treesitter.lua}
${builtins.readFile ./vimrc}
''
];
};
}