[zsh] Add neovim_init_once function
This commit is contained in:
parent
556d125741
commit
148c79d7b2
1 changed files with 23 additions and 0 deletions
23
zsh/func/neovim_init_once
Normal file
23
zsh/func/neovim_init_once
Normal 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 "$@"
|
Loading…
Add table
Add a link
Reference in a new issue