1
0
mirror of https://git.disroot.org/FollieHiyuki/dotfiles.git synced 2024-12-14 10:08:36 -05:00
FollieHiyuki-dotfiles/home/.config/nvim/scripts/lsp/tailwindcss

13 lines
296 B
Plaintext
Raw Normal View History

#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tailwindcss"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install @tailwindcss/language-server
cd ${current_path}