[zsh] Add neovim_init_once function

This commit is contained in:
Eryn Wells 2023-08-25 08:01:25 -07:00
parent 556d125741
commit 148c79d7b2

23
zsh/func/neovim_init_once Normal file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
autoload -Uz binary_exists
neovim_init_once()
{
if binary_exists npm; then
npm install -g \
@tailwindcss/language-server \
eslint \
typescript-language-server \
typescript \
vscode-langservers-extracted
else
print "Cannot find npm binary" >&2
return -1
fi
return 0
}
neovim_init_once "$@"