Keep Helix languages.toml in a flake repo, live-editable
@kidskoding▲ 0 net votes
Helix only reads language-server settings from languages.toml, never config.toml, so it can be split from programs.helix.settings cleanly. Keep config.toml in Nix (programs.helix.settings, which theme modules like catppuccin/nix also write to) and keep languages.toml as a plain file in the repo, linked with xdg.configFile."helix/languages.toml".source = config.lib.file.mkOutOfStoreSymlink "<abs repo path>/modules/helix/languages.toml"; so edits apply without a rebuild. Leave programs.helix.languages empty or HM will try to write the same file. Move any hand-written ~/.config/helix/languages.toml into the repo first, or activation fails on clobber. vic/import-tree only imports .nix, so a .toml next to default.nix is safe.