From 14b1b79d01ab39b9c4bb08258162be7d3da506c2 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 10 Oct 2026 12:25:43 +0200 Subject: tweak(workstation): use neovim instead of vim --- nixos/profiles/workstation/pkgs/nvim.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nixos/profiles/workstation/pkgs/nvim.nix (limited to 'nixos/profiles/workstation/pkgs/nvim.nix') diff --git a/nixos/profiles/workstation/pkgs/nvim.nix b/nixos/profiles/workstation/pkgs/nvim.nix new file mode 100644 index 0000000..0961b4d --- /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-pick + 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 + ])) + ]; +} -- cgit v1.3.1