aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/editor.nix
blob: 3343cc3dbee8e4624143bfde112677f41399d474 (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
{ pkgs, ... }:
{
  programs.neovim = {
    enable = true;
    defaultEditor = true;
    vimAlias = true;
    # Never write ~/.config/nvim/init.lua ourselves - that path is owned by
    # the externally-managed dotfiles config (lazy.nvim + plugins), stowed
    # in separately. Without this, home-manager's own generated init.lua
    # permanently conflicts with that stow package and it gets skipped.
    sideloadInitLua = true;
    # Pin the legacy (stateVersion < 26.05) provider defaults explicitly so
    # this doesn't silently change if stateVersion is ever bumped.
    withRuby = true;
    withPython3 = true;
  };

  # tree-sitter (parser compilation) and a C compiler for natively-built
  # Neovim plugins declared by the dotfiles-owned config above.
  # nodejs/python3/unzip: required on PATH by mason.nvim's installers
  # (npm-based LSP servers, debugpy, terraform-ls).
  home.packages = with pkgs; [
    tree-sitter
    stdenv.cc
    nodejs
    python3
    unzip
  ];
}