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

{
  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

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

      # syntax
      rust-vim
      vim-nix
      vimtex

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