aboutsummaryrefslogtreecommitdiff
path: root/programs/neovim.nix
blob: 40f399820c08fb1050eeeb7bd1ed34c40adae1f1 (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
{ config
, pkgs
, self
, ...
}:

{
  programs.neovim = {
    enable = true;
    extraConfig = builtins.readFile ./init.vim;
    withNodeJs = false;
    vimAlias = true;
    withPython3 = true;
    extraPackages = with pkgs; [
      gcc
      python37Packages.yapf
      hlint
      ocamlformat
      ocamlPackages.ocaml-lsp
    ];
    plugins = with pkgs.vimPlugins; [
      # neovim only
      nvim-lspconfig
      (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars))
      completion-nvim

      pkgs.statix-vim

      # tpope
      vim-surround
      vim-unimpaired
      vim-repeat
      # vim-fugitive

      # syntax
      rust-vim
      vim-nix
      vimtex

      # handy
      vim-gitgutter
      tabular
      emmet-vim
      vimwiki
      fzf-vim
    ];
  };
}