summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/editor/neovim/default.nix
blob: a6fc1abc104eb41bf354b5ee593de8b6188f6a2c (plain)
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
{pkgs, config,  ...}:
{
  fonts.fonts = [ pkgs.font-awesome_5 ];
  # Neovim dependencies
  home-manager.users.makefu = {
    home.packages = with pkgs; [
      ctags # dependencie
      jq # For fixing json files
      xxd # .bin files will be displayed with xxd
      shellcheck # Shell linting
      # ansible-lint # Ansible linting
      unzip # To vim into unzipped files
      # nodePackages.jsonlint # json linting
      #ccls # C/C++ language server
      #clang-tools # C++ fixer
      cargo

      # Go support
      #go
      #gotools
      #gocode
    ];

    home.file.".config/pycodestyle".text= ''
      [pycodestyle]
      max-line-length = 125
    '';
    programs.neovim = {
      enable = true;
      withPython3 = true;
      # withNodeJs = true;
      extraPython3Packages = (ps: with ps; [
        # python-language-server
        # pyls-mypy
        black libxml2
      ]);
      extraConfig = builtins.readFile ./vimrc;
      plugins = with pkgs.vimPlugins;[
        undotree
        vim-addon-nix

        nerdtree # file manager
        commentary # comment stuff out based on language
        fugitive # full git integration
        vim-airline-themes # lean & mean status/tabline
        vim-airline # status bar
        gitgutter # git diff in the gutter (sign column)
        vim-trailing-whitespace # trailing whitspaces in red
        tagbar # F3 function overview
        ReplaceWithRegister # For better copying/replacing
        polyglot # Language pack
        vim-indent-guides # for displaying indent levels
        deoplete-nvim # general autocompletion
        deoplete-go
        ale
        molokai # color scheme
      ];
    };
  };
}