aboutsummaryrefslogtreecommitdiff
path: root/nixos/profiles/workstation/pkgs/nvim.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-10-10 12:25:43 +0200
committerMartin Fischer <martin@push-f.com>2026-10-14 07:02:21 +0200
commit14b1b79d01ab39b9c4bb08258162be7d3da506c2 (patch)
tree4feacbb357ae0d7da4ab6ca34d4ddc1b7ebe4d8d /nixos/profiles/workstation/pkgs/nvim.nix
parentd52ba0d225c018df64d32b4840549e3a8cf1ee3b (diff)
tweak(workstation): use neovim instead of vim
Diffstat (limited to 'nixos/profiles/workstation/pkgs/nvim.nix')
-rw-r--r--nixos/profiles/workstation/pkgs/nvim.nix23
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..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
+ ]))
+ ];
+}