[nvim] Switch from Mason to Chezmoi

This commit is contained in:
aloslider
2026-04-21 03:42:54 +03:00
parent e70c3138ce
commit 6c16b57f3b
19 changed files with 83 additions and 140 deletions
@@ -1,5 +1,5 @@
#!/bin/bash
{{ if -eq .chezmoi.osRelease.id "nixos" }}
{{ if eq .chezmoi.osRelease.id "nixos" }}
exit 0
{{ end }}
@@ -1,5 +1,5 @@
#!/bin/bash
{{ if -eq .chezmoi.osRelease.id "nixos" }}
{{ if eq .chezmoi.osRelease.id "nixos" }}
exit 0
{{ end }}
@@ -1,5 +1,5 @@
#!/bin/bash
{{ if -eq .chezmoi.osRelease.id "nixos" }}
{{ if eq .chezmoi.osRelease.id "nixos" }}
exit 0
{{ end }}
@@ -12,22 +12,26 @@ sudo pacman -Sy --noconfirm
pkgs=()
{{ range .packages.arch }}
pkgs+=("{{ . }}")
if ! pacman -Q "{{ . }}" &>/dev/null; then
pkgs+=("{{ . }}")
fi
{{ end }}
if [[ ${#pkgs[@]} -gt 0 ]]; then
echo "Installing pacman packages"
sudo pacman -S --noconfirm "${pkgs[@]}"
sudo pacman -S --noconfirm --needed "${pkgs[@]}"
fi
pkgs=()
aur_pkgs=()
{{ range .packages.aur }}
pkgs+=("{{ . }}")
if ! pacman -Q "{{ . }}" &>/dev/null; then
aur_pkgs+=("{{ . }}")
fi
{{ end }}
if [[ ${#pkgs[@]} -gt 0 ]]; then
if [[ ${#aur_pkgs[@]} -gt 0 ]]; then
echo "Installing AUR packages"
paru -S --noconfirm "${pkgs[@]}"
paru -S --noconfirm --needed "${aur_pkgs[@]}"
fi
{{ end }}
@@ -0,0 +1,18 @@
#!/bin/sh
{{ if eq .chezmoi.osRelease.id "nixos" }}
exit 0
{{ end }}
set -euo pipefail
echo "Installing LSPs for Neovim..."
npm install -g --prefix ~/.local \
@vtsls/language-server \
@vue/language-server \
vscode-langservers-extracted
dotnet tool install -g roslyn-language-server --prerelease
dotnet tool install -g csharpier
echo "Done"
@@ -1,5 +1,6 @@
#!/bin/bash
{{ if -eq .chezmoi.osRelease.id "nixos" }}
exit 0
{{ if eq .chezmoi.osRelease.id "nixos" }}
exit 0
{{ end }}