diff options
| author | Martin Fischer <martin@push-f.com> | 2026-10-10 12:25:43 +0200 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-31 08:20:38 +0100 |
| commit | 3b40c998ad60ad7e15b4336d2127797a42d372aa (patch) | |
| tree | 536601fd462ad05030b796409069d09ff762b6a6 /nixos/profiles/workstation/pkgs | |
| parent | 7dc8285962df04d74f23efba26a0f55a839af45d (diff) | |
tweak(workstation): use neovim instead of vim
Diffstat (limited to 'nixos/profiles/workstation/pkgs')
| -rw-r--r-- | nixos/profiles/workstation/pkgs/nvim.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/profiles/workstation/pkgs/nvim.nix b/nixos/profiles/workstation/pkgs/nvim.nix new file mode 100644 index 0000000..46a678c --- /dev/null +++ b/nixos/profiles/workstation/pkgs/nvim.nix @@ -0,0 +1,23 @@ +{ pkgs }: + +# Using the unstable wrapper because it honors `wrapRc = false`, +# which `neovim.override` and `wrapNeovim` disregard (they always set VIMINIT). +pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped { + vimAlias = true; + wrapRc = false; + + plugins = with pkgs.vimPlugins; [ + mini-nvim + vscode-nvim + # neovim has no syntax highlighting for Svelte by default + # and nvim-treesitter also provides good auto-indentation. + (nvim-treesitter.withPlugins (p: with p; [ + css + html + javascript + nix + svelte + typescript + ])) + ]; +} |
