-
Notifications
You must be signed in to change notification settings - Fork 0
/
vim.nix
59 lines (54 loc) · 1.58 KB
/
vim.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
{ config, pkgs, repos, lib, ... }:
{
programs.neovim = {
enable = true;
vimAlias = true;
withNodeJs = true;
withRuby = true;
withPython3 = true;
plugins = with pkgs.vimPlugins; [
vim-nix
lightline-vim
vim-jsx-typescript
typescript-vim
yats-vim # more typescript?
# fancy new neovim powered lsp
lspsaga-nvim
nvim-lspconfig
nvim-treesitter # and ast based syntax highlighting
nvim-cmp
cmp-nvim-lsp
vim-gitgutter
vim-fugitive
vim-endwise # auto adds end/endif/etc
undotree # time travel isn't linear
nerdtree # happy lil file tree
vim-sleuth # auto configures intentation based on what the file looks like
nerdcommenter # gives me some easy shortcuts to comment/uncomment
vim-misc # ?????
echodoc-vim # print function signatures in command line
fzf-vim # for ctrl-p and ctrl-/
# vim-go # snazzy go support TODO: no arm support???
popup-nvim # [wip] pop api from vim in neovim
plenary-nvim # window managment stuff??
telescope-nvim # alternative fzf
] ++ [
(pkgs.vimUtils.buildVimPlugin {
pname = "muble";
version = "1";
src = repos.muble-vim;
})
(pkgs.vimUtils.buildVimPlugin {
pname = "vim-openscad";
version = "1";
src = repos.openscad-vim;
})
(pkgs.vimUtils.buildVimPlugin {
pname = "copilot";
version = "1";
src = repos.github-copilot-vim;
})
];
extraConfig = (builtins.readFile ./config/nvim/init.vim);
};
}