1
0
Fork 1

Add Auto Install Script

This commit is contained in:
Snoweuph 2024-11-23 19:30:12 +01:00
parent 5fc2baefbe
commit 61d0f5cf4c
Signed by: Snoweuph
GPG key ID: BEFC41DA223CEC55
3 changed files with 50 additions and 25 deletions

View file

@ -1,24 +1 @@
# [Dotfiles](https://git.euph.dev/Snoweuph/Dotfiles)/nvim # [Dotfiles](https://git.euph.dev/Snoweuph/Dotfiles)/nvim
## Requirements
- [neovim](https://neovim.io/)
- [go](https://go.dev/doc/install)
- [gcc](https://www.gnu.org/software/gcc/)
- [curl](https://github.com/curl/curl/blob/master/docs/INSTALL.md)
- [wget](https://www.gnu.org/software/wget/)
- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- unzip
- [tar](https://www.gnu.org/software/tar/)
- [gzip](https://www.gnu.org/software/gzip/)
- codespell
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
- [php](https://www.php.net/manual/en/install.php)
- [composer](https://www.php.net/manual/en/install.php)
- [node](https://nodejs.org/en/download/package-manager)
- [npm](https://nodejs.org/en/download/package-manager)
- [stylua](https://github.com/JohnnyMorganz/StyLua#installation)
- [glow](https://github.com/charmbracelet/glow#installation)
- [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
- [delve](https://github.com/go-delve/delve/tree/master/Documentation/installation)
- [prettierd](https://github.com/fsouza/prettierd#installation-guide)
- [eslint_d](https://github.com/mantoni/eslint_d.js#setup)

49
install.sh Executable file
View file

@ -0,0 +1,49 @@
#!/bin/sh
# Base
command -v nvim &>/dev/null || sudo dnf install -y neovim
command -v gcc &>/dev/null || sudo dnf install -y gcc
command -v rg &>/dev/null || sudo dnf install -y ripgrep
# Config
command -v spectral &>/dev/null || volta install @stoplight/spectral-cli
# Go
command -v delv &>/dev/null || sudo dnf install delve -y
command -v gomodifytags &>/dev/null || go install github.com/fatih/gomodifytags@latest
command -v impl &>/dev/null || go install github.com/josharian/impl@latest
command -v golangci-lint &>/dev/null || go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
command -v staticcheck &>/dev/null || go install honnef.co/go/tools/cmd/staticcheck@latest
command -v gofumpt &>/dev/null || go install mvdan.cc/gofumpt@latest
# Lua
command -v selene &>/dev/null || cargo install selene
command -v selene &>/dev/null || cargo install styua
# Php
command -v phpcs &>/dev/null || composer global require "squizlabs/php_codesniffer=*" -n
command -v phpstan &>/dev/null || composer global require "phpstan/phpstan=*" -n
command -v php-cs-fixer &>/dev/null || composer global require "friendsofphp/php-cs-fixer=*" -n
command -v twigcs &>/dev/null || composer global require "friendsoftwig/twigcs=*" -n
# Rust
command -v cargo-clippy &>/dev/null || rustup component add clippy
command -v rust-analyzer &>/dev/null || rustup component add rust-analyzer
# Scripts
command -v actionlint &>/dev/null || go install github.com/rhysd/actionlint/cmd/actionlint@latest
command -v checkmake &>/dev/null || go install github.com/mrtazz/checkmake/cmd/checkmake@latest
command -v dotenv-linter &>/dev/null || cargo install dotenv-linter
command -v shfmt &>/dev/null || go install mvdan.cc/sh/v3/cmd/shfmt@latest
command -v shellharden &>/dev/null || cargo install shellharden
# text
command -v proselint &>/dev/null || sudo dnf install proselint -y
command -v alex &>/dev/null || volta install alex
command -v markdownlint &>/dev/null || volta install markdownlint-cli
command -v stylelint &>/dev/null || volta install stylelint
command -v prettierd &>/dev/null || volta install @fsouza/prettierd

View file

@ -7,7 +7,6 @@ function M.setup()
T.add_null_ls_module(function(null_ls) T.add_null_ls_module(function(null_ls)
return { return {
null_ls.builtins.diagnostics.spectral, null_ls.builtins.diagnostics.spectral,
--null_ls.builtins.diagnostics.vacuum --Pure Openapi linter
} }
end) end)