Skip to content

Latest commit

 

History

History
163 lines (109 loc) · 3.05 KB

REQUIREMENTS.md

File metadata and controls

163 lines (109 loc) · 3.05 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 [email protected] 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
  • xkbswitch-macosx
git clone --depth=1 https://github.com/myshov/xkbswitch-macosx.git
cp xkbswitch-macosx/bin/xkbswitch /usr/local/bin/

git clone --depth=1 https://github.com/myshov/libxkbswitch-macosx
cp libxkbswitch-macosx/bin/libxkbswitch.dylib /usr/local/lib/
  • 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/[email protected]
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

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

brew install alacritty
  • Install fonts
git clone --depth=1 https://github.com/vimhack/nerd-fonts-patched.git

cd nerd-fonts-patched

./install.sh

For Linux