]> Git — Sourcephile - julm/julm-nix.git/blob - homes/softwares/vim.nix
julm: move cachix and exa to developer
[julm/julm-nix.git] / homes / softwares / vim.nix
1 { pkgs, lib, config, ... }:
2 let inherit (builtins) readFile; in
3 {
4 config = {
5 programs.vim = {
6 extraConfig =
7 readFile vim/init.vim
8 #+ readFile home/vim/syntastic.vim
9 #+ readFile home/vim/coc.vim
10 + readFile vim/ale.vim
11 ;
12 # Plugin list:
13 # nix-instantiate -E --eval 'builtins.attrNames (import <nixpkgs> {}).vimPlugins'
14 plugins = [
15 #pkgs.vimPlugins.vim-lsc
16 pkgs.vimPlugins.gitgutter
17 #pkgs.vimPlugins.nvim-yarp
18 #pkgs.vimPlugins.deoplete-nvim
19 #pkgs.vimPlugins.deoplete-lsp
20 #pkgs.vimPlugins.LanguageClient-neovim
21 #pkgs.vimPlugins.fzf-vim
22 #pkgs.vimPlugins.echodoc
23 pkgs.vimPlugins.ale
24 #pkgs.vimPlugins.indentLine
25 #pkgs.vimPlugins.vim-indent-guides
26 #pkgs.vimPlugins.coc-nvim
27 #pkgs.vimPlugins.coc-diagnostic
28 #pkgs.vimPlugins.coc-json
29 #pkgs.vimPlugins.coc-lists
30 pkgs.vimPlugins.easy-align
31 pkgs.vimPlugins.hoogle
32 pkgs.vimPlugins.Recover-vim
33 #pkgs.vimPlugins.syntastic
34 #pkgs.vimPlugins.The_NERD_tree
35 pkgs.vimPlugins.vim-dirvish
36 pkgs.vimPlugins.vim-buffergator
37 pkgs.vimPlugins.vim-markdown
38 pkgs.vimPlugins.vimproc
39 #pkgs.vimPlugins.fugitive
40 pkgs.vimPlugins.vim-ghcid-quickfix
41 ];
42 };
43 programs.neovim = {
44 extraConfig =
45 readFile vim/init.vim +
46 readFile vim/ale.vim;
47 plugins = [
48 #pkgs.vimPlugins.vim-lsc
49 pkgs.vimPlugins.gitgutter
50 #pkgs.vimPlugins.nvim-yarp
51 #pkgs.vimPlugins.deoplete-nvim
52 #pkgs.vimPlugins.deoplete-lsp
53 #pkgs.vimPlugins.LanguageClient-neovim
54 #pkgs.vimPlugins.fzf-vim
55 #pkgs.vimPlugins.echodoc
56 pkgs.vimPlugins.ale
57 #pkgs.vimPlugins.indentLine
58 #pkgs.vimPlugins.vim-indent-guides
59 #pkgs.vimPlugins.coc-nvim
60 #pkgs.vimPlugins.coc-diagnostic
61 #pkgs.vimPlugins.coc-json
62 #pkgs.vimPlugins.coc-lists
63 pkgs.vimPlugins.easy-align
64 pkgs.vimPlugins.hoogle
65 pkgs.vimPlugins.Recover-vim
66 #pkgs.vimPlugins.syntastic
67 #pkgs.vimPlugins.The_NERD_tree
68 pkgs.vimPlugins.vim-dirvish
69 pkgs.vimPlugins.vim-buffergator
70 pkgs.vimPlugins.vim-markdown
71 pkgs.vimPlugins.vimproc
72 #pkgs.vimPlugins.fugitive
73 ];
74 };
75 } /* // lib.optionalAttrs (!config.useGlobalPkgs) {
76 nixpkgs.config.vim.gui = if config.host.desktop then "gtk3" else "";
77 }*/;
78
79 }