Skip to content

Latest commit

 

History

History
179 lines (121 loc) · 3.36 KB

REQUIREMENTS.md

File metadata and controls

179 lines (121 loc) · 3.36 KB

Requirements Installation

Install requirements for vimhack/dotfiles.

For MacOS

Install homebrew first if you have not installed homebrew:

# https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install necessary packages:

brew install python poetry go ruby lua@5.3 nodejs
brew install cmake mono yarn ctags rg gsed

Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • zsh-autosuggestions
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions \
    ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • zsh-syntax-highlighting
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git \
    ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  • powerlevel10k
git clone --depth=1 https://github.com/vimhack/powerlevel10k.git \
    ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

ln -sf ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k/p10k.zsh $HOME/.p10k.zsh
brew install fzf
# To install useful key bindings and fuzzy completion:
$(brew --prefix)/opt/fzf/install
# For replace ls
# doc: https://the.exa.website
brew install exa

Vim/Neovim

export PATH="/usr/local/opt/python3/bin:$PATH"

brew install macvim
export PATH="/usr/local/opt/python3/bin:$PATH"

brew install --HEAD luajit
brew install --HEAD neovim

pip3 install neovim
  • im-select
curl -Ls -o /usr/local/bin/im-select https://github.com/daipeihust/im-select/raw/master/macOS/out/apple/im-select
chmod 755 /usr/local/bin/im-select
  • ale linters
brew install golangci-lint lua luarocks tidy-html5 shellcheck jq

luarocks install luacheck

npm install -g eslint standard eslint-plugin-vue vls \
    proselint alex write-good stylelint markdownlint jsonlint

pip3 install pylint flake8 yamllint

go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.39.0
go get -u github.com/mgechev/revive

sudo gem install mdl
  • ale fixers
npm install -g prettier importjs lua-fmt
pip3 install black isort
go get mvdan.cc/sh/v3/cmd/shfmt
  • coc.nvim
# for Lua
luarocks install --server=http://luarocks.org/dev lua-lsp
luarocks install luacheck
luarocks install lcf

# for dockerfile
npm i -g dockerfile-language-server-nodejs

# for coc-gocode
go install github.com/nsf/gocode@latest

# for coc-java, coc-xml
brew install java

Tmux

brew install tmux
  • iStats
# For showing cpu temperature and fan speed in the tmux status bar.
sudo gem install iStats
  • switchaudio-osx
# For showing audio volume status in the tmux status bar.
brew install switchaudio-osx

Alacritty

# Download first, then install it.
wget https://github.com/alacritty/alacritty/releases/download/v0.12.3/Alacritty-v0.12.3.dmg
  • Install fonts
git clone --depth=1 https://github.com/vimhack/nerd-fonts-patched.git

cd nerd-fonts-patched

./install.sh

For Linux