summaryrefslogtreecommitdiff
path: root/users/seth/programs/neovim/default.nix
blob: 327d84043158f6717787cfe0fb84efdc5cce559a (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
62
63
64
65
66
67
68
69
70
71
72
73
74
{pkgs, ...}: {
  programs.neovim = {
    enable = true;
    defaultEditor = true;
    extraPackages = with pkgs; [
      actionlint
      alejandra
      beautysh
      codespell
      deadnix
      just
      llvmPackages_15.clang
      llvmPackages_15.libclang
      nil
      nodePackages.alex
      nodePackages.bash-language-server
      nodePackages.eslint
      nodePackages.prettier
      nodePackages.pyright
      nodePackages.typescript-language-server
      pylint
      rust-analyzer
      rustfmt
      shellcheck
      shellharden
      statix
      stylua
      sumneko-lua-language-server
      yapf
    ];
    plugins = with pkgs.vimPlugins; [
      bufferline-nvim
      catppuccin-nvim
      cmp-nvim-lsp
      cmp-buffer
      cmp_luasnip
      cmp-path
      editorconfig-nvim
      # TODO: stop pinning the `legacy` tag
      # when fidget is rewritten
      (fidget-nvim.overrideAttrs (_: {
        src = pkgs.fetchFromGitHub {
          owner = "j-hui";
          repo = "fidget.nvim";
          rev = "90c22e47be057562ee9566bad313ad42d622c1d3";
          hash = "sha256-ZLe54bRMctXlBo8zH9Qy6HbrkVSlGhPiXg38aAja9C8=";
        };
      }))
      gitsigns-nvim
      leap-nvim
      lualine-nvim
      luasnip
      nvim-autopairs
      nvim-cmp
      nvim-lspconfig
      null-ls-nvim
      nvim-tree-lua
      nvim-treesitter.withAllGrammars
      nvim-web-devicons
      pkgs.vim-just
      plenary-nvim
      telescope-nvim
      trouble-nvim
    ];
    extraLuaConfig = ''
      require("getchoo")
    '';
  };

  xdg.configFile."nvim/lua/getchoo" = {
    source = ./config;
    recursive = true;
  };
}