diff options
| author | 2026-09-21 12:16:50 +0200 | |
|---|---|---|
| committer | 2026-09-21 12:16:50 +0200 | |
| commit | f8e84b1e18d39632ead22b7c45fe4e97691bed29 (patch) | |
| tree | 384a6f243894960d7fcd01738191976ace6dfd4b /modules/home/editor.nix | |
| parent | 8fa7344435dbf81accb0751b48fc4bd776a201ff (diff) | |
| download | desktop-flake-f8e84b1e18d39632ead22b7c45fe4e97691bed29.tar.gz desktop-flake-f8e84b1e18d39632ead22b7c45fe4e97691bed29.tar.bz2 desktop-flake-f8e84b1e18d39632ead22b7c45fe4e97691bed29.zip | |
Fix Neovim plugins never loading via sideloadInitLua
home-manager's programs.neovim module always writes a non-empty
~/.config/nvim/init.lua, which permanently conflicts with Stow linking
the dotfiles-owned lazy.nvim config to that same path - Stow skips the
package and plugins never load. Setting sideloadInitLua = true frees
that path for the dotfiles config to own exclusively. Also provisions
a C compiler and tree-sitter (moved from dev-tools.nix) so natively-
built plugins can compile on every platform.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BBSd4VBfoKHjE1HR3P8kmn
Diffstat (limited to 'modules/home/editor.nix')
| -rw-r--r-- | modules/home/editor.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/home/editor.nix b/modules/home/editor.nix index b687552..413ca8f 100644 --- a/modules/home/editor.nix +++ b/modules/home/editor.nix | |||
| @@ -1,7 +1,20 @@ | |||
| 1 | { pkgs, ... }: | ||
| 1 | { | 2 | { |
| 2 | programs.neovim = { | 3 | programs.neovim = { |
| 3 | enable = true; | 4 | enable = true; |
| 4 | defaultEditor = true; | 5 | defaultEditor = true; |
| 5 | vimAlias = true; | 6 | vimAlias = true; |
| 7 | # Never write ~/.config/nvim/init.lua ourselves - that path is owned by | ||
| 8 | # the externally-managed dotfiles config (lazy.nvim + plugins), stowed | ||
| 9 | # in separately. Without this, home-manager's own generated init.lua | ||
| 10 | # permanently conflicts with that stow package and it gets skipped. | ||
| 11 | sideloadInitLua = true; | ||
| 6 | }; | 12 | }; |
| 13 | |||
| 14 | # tree-sitter (parser compilation) and a C compiler for natively-built | ||
| 15 | # Neovim plugins declared by the dotfiles-owned config above. | ||
| 16 | home.packages = with pkgs; [ | ||
| 17 | tree-sitter | ||
| 18 | stdenv.cc | ||
| 19 | ]; | ||
| 7 | } | 20 | } |
