-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvim.nix
69 lines (62 loc) · 1.52 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
60
61
62
63
64
65
66
67
68
69
{pkgs ? import <nixpkgs> {}}:
let
custom_vim_configurable = with pkgs;
vimUtils.makeCustomizable (vim_configurable.override { python = python3; });
customPlugins.vim-latex-suite = pkgs.vimUtils.buildVimPlugin {
name = "vim-latex-suite";
src = pkgs.fetchFromGitHub {
owner = "vim-latex";
repo = "vim-latex";
rev = "v1.9.0";
sha256 = "1zym13sx7fh6pcklsdfv3yab2km41picf2c753swva12grjih5an";
};
};
in
with pkgs; rec {
custom-vim = custom_vim_configurable.customize {
name = "vim";
vimrcConfig.customRC = ''
syntax on
colorscheme molokai
set relativenumber
let g:airline_powerline_fonts = 1
let g:airline_theme='powerlineish'
set laststatus=2
filetype plugin on
let g:tex_flavor='latex'
'';
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins;
vimrcConfig.vam.pluginDictionaries = [
{ names = [
"molokai"
"vim-airline"
"vim-airline-themes"
"youcompleteme"
"Syntastic"
"vinegar"
"vim-latex-suite"
]; }
];
};
custom-neovim = neovim.override {
configure = {
customRC = ''
colorscheme molokai
set relativenumber
let g:airline_powerline_fonts = 1
let g:airline_theme='powerlineish'
set laststatus=2
'';
vam.knownPlugins = pkgs.vimPlugins;
vam.pluginDictionaries = [
{ names = [
"molokai"
"vim-airline"
"vim-airline-themes"
"vinegar"
];
}
];
};
};
}