-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvim.nix
55 lines (54 loc) · 1.63 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
{ config, pkgs, ... }:
let
badwolf = pkgs.vimUtils.buildVimPlugin {
name = "badwolf";
src = pkgs.fetchFromGitHub {
owner = "sjl";
repo = "badwolf";
rev = "682b521";
sha256 = "Dl4zaGkeglURy7JQtThpaY/UrNIoxtkndjF/HJw7yAg=";
};
};
vim-syntax-shakespeare = pkgs.vimUtils.buildVimPlugin {
name = "vim-syntax-shakespeare";
src = pkgs.fetchFromGitHub {
owner = "pbrisbin";
repo = "vim-syntax-shakespeare";
rev = "2f4f61e";
sha256 = "sdCXJOvB+vJE0ir+qsT/u1cHNxrksMnqeQi4D/Vg6UA=";
};
};
vim-fourmolu = pkgs.vimUtils.buildVimPlugin {
name = "vim-fourmolu";
src = pkgs.fetchFromGitHub {
owner = "feature-not-a-bug";
repo = "vim-fourmolu";
rev = "0cf6dde";
sha256 = "DgLEzzF1RzO7mgOIoiaXiKAZfu5rX31F4YEinWyGh5g=";
};
};
vim = if config.services.xserver.enable then pkgs.vim-full else pkgs.vim;
myvim = vim.customize {
vimrcConfig.packages.myplugins.start = with pkgs.vimPlugins; [
vim-nix
vim-lastplace
vim-fourmolu
vim-syntax-shakespeare
vimwiki
editorconfig-vim
vim-textobj-user
zenburn
badwolf
vim-colors-solarized
ctrlp
purescript-vim
awesome-vim-colorschemes
];
vimrcConfig.customRC = builtins.readFile ./vimrc;
};
in
{
environment.variables = { EDITOR = "vim"; };
environment.systemPackages = [ myvim ];
users.users.akegalj.packages = [ pkgs.haskellPackages.fourmolu pkgs.haskellPackages.hasktags pkgs.nodePackages.purs-tidy ];
}