aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/editor.nix
blob: 792d878d0da1327a985e7c4334db33466b86171e (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
{ 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.
  home.packages = with pkgs; [
    tree-sitter
    stdenv.cc
  ];
}