diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-10-01 23:18:40 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-10-01 23:18:40 -0500 |
commit | 1e204558e341c7ff57e44eb44f17768577c20d42 (patch) | |
tree | ced7bac20d25ce632b5d5963c33e5e1ee73d2994 /archetypes/collections/neovim.nix | |
parent | 79679fe81ae61c7b3c7aaab08dc7ff19fd956b18 (diff) | |
download | nixos-1e204558e341c7ff57e44eb44f17768577c20d42.tar.xz nixos-1e204558e341c7ff57e44eb44f17768577c20d42.zip |
link vi(m) -> nvim and install lsp servers for neovim
Diffstat (limited to 'archetypes/collections/neovim.nix')
-rw-r--r-- | archetypes/collections/neovim.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/archetypes/collections/neovim.nix b/archetypes/collections/neovim.nix new file mode 100644 index 0000000..5107dbd --- /dev/null +++ b/archetypes/collections/neovim.nix @@ -0,0 +1,23 @@ +{ lib, pkgs, ... }: let + cfg.neovimPackage = pkgs.neovim; + + # Neovim package that includes aliases vi(m) -> nvim + neovim-aliases = pkgs.symlinkJoin { + name = "neovim-aliases"; + paths = [ cfg.neovimPackage ]; + postBuild = '' + ln -sf $out/bin/nvim $out/bin/vi + ln -sf $out/bin/nvim $out/bin/vim + ''; + }; +in { + # Don't use programs.neovim since that will build neovim from source + environment.systemPackages = with pkgs; [ + neovim-aliases + # LSP servers + python313Packages.python-lsp-server + svelte-language-server + tailwindcss-language-server + vscode-langservers-extracted + ]; +} |