Mercurial > dotfiles
changeset 502:6b6da9305782
Enable shellcheck via null-ls
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 06 Dec 2021 15:19:44 +0100 |
parents | 408d9c64c87a |
children | 18c6eb4d5c71 |
files | .chezmoitemplates/init.lua scripts/install.sh |
diffstat | 2 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Mon Dec 06 13:43:31 2021 +0100 +++ b/.chezmoitemplates/init.lua Mon Dec 06 15:19:44 2021 +0100 @@ -805,6 +805,7 @@ sources = { null_ls.builtins.formatting.black, null_ls.builtins.formatting.stylua, + null_ls.builtins.diagnostics.shellcheck, }, } lsp['null-ls'].setup {
--- a/scripts/install.sh Mon Dec 06 13:43:31 2021 +0100 +++ b/scripts/install.sh Mon Dec 06 15:19:44 2021 +0100 @@ -4,22 +4,11 @@ BIN_DIR="$HOME/bin" if [ "$(uname)" == "Darwin" ]; then - STYLUA_PLATFORM="macos" PLATFORM="macOS" else - STYLUA_PLATFORM="linux" PLATFORM="Linux" fi -echo "Install stylua" -STYLUA_VERSION="0.10.0" -pushd /tmp -wget https://github.com/JohnnyMorganz/StyLua/releases/download/v${STYLUA_VERSION}/stylua-${STYLUA_VERSION}-${STYLUA_PLATFORM}.zip -unzip stylua-${STYLUA_VERSION}-${STYLUA_PLATFORM}.zip -mv stylua "${BIN_DIR}/stylua" -chmod +x "${BIN_DIR}/stylua" -popd - echo "Install sumneko language server" SUMNEKO_DIR="$HOME/.local/share/sumneko-lua/" mkdir -p "${SUMNEKO_DIR}"