nvim: use yarn instead of npm for install scripts

This commit is contained in:
Hoang Nguyen 2022-05-15 03:47:27 +07:00
parent 7a295b8eb7
commit 3d0c27cd3d
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
13 changed files with 24 additions and 24 deletions

View File

@ -22,7 +22,7 @@
gnupg-doc, jq, iproute2, gst-plugins-pipewire, sops, imagemagick,
libarchive-tools, libffi-dev, qalc, love, bombadillo, mupdf-tools,
man-pages-posix, man-pages, meson, mpc, mpd, mpdris2, pavucontrol-qt,
mpv, mpv-mpris, ncmpcpp, neovim, npm, yarn, pandoc, k9s, rustscan,
mpv, mpv-mpris, ncmpcpp, neovim, yarn, pandoc, k9s, rustscan,
py3-pynvim, newsboat, ngrep, nmap, nushell, packer, rsync, clifm,
pcmanfm-qt, pinentry-qt, pipewire, sway, swappy, sshfs, step-cli, xh,
pipewire-pulse, playerctl, qimgv, qt5ct, pipewire-tools, kubectl,

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lint/cspell"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lint || true
npm install cspell@latest
[ ! -f package.json ] && yarn init -y || true
yarn add cspell@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lint/markdownlint"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lint || true
npm install markdownlint-cli@latest
[ ! -f package.json ] && yarn init -y || true
yarn add markdownlint-cli@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lint/stylelint"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lint || true
npm install stylelint@latest stylelint-config-standard@latest stylelint-config-standard-scss@latest
[ ! -f package.json ] && yarn init -y || true
yarn add stylelint@latest stylelint-config-standard@latest stylelint-config-standard-scss@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lint/write_good"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lint || true
npm install write-good@latest
[ ! -f package.json ] && yarn init -y || true
yarn add write-good@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/ansiblels"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install @ansible/ansible-language-server@latest
[ ! -f package.json ] && yarn init -y || true
yarn add @ansible/ansible-language-server@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/bashls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install bash-language-server@latest
[ ! -f package.json ] && yarn init -y || true
yarn add bash-language-server@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/dockerls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install dockerfile-language-server-nodejs@latest
[ ! -f package.json ] && yarn init -y || true
yarn add dockerfile-language-server-nodejs@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/emmet_ls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install emmet-ls@latest
[ ! -f package.json ] && yarn init -y || true
yarn add emmet-ls@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ 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
[ ! -f package.json ] && yarn init -y || true
yarn add @tailwindcss/language-server@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tsserver"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install typescript@latest typescript-language-server@latest
[ ! -f package.json ] && yarn init -y || true
yarn add typescript@latest typescript-language-server@latest
cd ${current_path}

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vscode"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install vscode-langservers-extracted@latest
[ ! -f package.json ] && yarn init -y || true
yarn add vscode-langservers-extracted@latest
cd ${current_path}

View File

@ -40,7 +40,7 @@
- name: fish | Download fzf_key_bindings.fish
get_url:
url: https://github.com/junegunn/fzf/raw/master/shell/key-bindings.fish
dest: ~/.config/fish/functions/fzf_key_bindings.fish
dest: ~/.config/fish/conf.d/fzf_key_bindings.fish
mode: 0644
- name: fish | Install fisher