[zsh] Move func/ directory to zsh/functions
This commit is contained in:
parent
91da2fc583
commit
7c08c5131f
53 changed files with 1 additions and 1 deletions
24
zsh/functions/neovim_init_once
Normal file
24
zsh/functions/neovim_init_once
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/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 \
|
||||
pyright \
|
||||
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