Table of Contents generated with DocToc
- Install Fish
git clone https://github.com/fish-shell/fish-shell.git -b <current_stable_version_branch>
cd fish-shell && sudo make install
- Set fish as default terminal
# Add fish path (you can get via `$(which fish) ` to /etc/shells.
sudo vim /etc/shells
chsh -s $(which fish)
- add paths
You should add some module paths (like brew, nvim) like below in
.config/fish/config.fish
.
fish_add_path /opt/homebrew/bin
fish_add_path /opt/homebrew/bin/nvim
If you using conda
, run the folowing command in your default terminal.
conda init fish
This command will modify .config/fish/config.fish
automatically.
- Install oh-my-fish
- Install Fish Theme
omf install bobthefish
- install nodejs (via fnm)
- install
tree-sitter-cli
npm install -g tree-sitter-cli
- install
prettier
with mason
# Open nvim and run the following command
:MasonInstall prettier
- install
markdownlint
with mason
# Open nvim and run the following command
:MasonInstall markdownlint
- install viu for image preview in fzflua plugin.
- Run
npm i -g pyright
to install pyright for nvim-lspconfig. - Run
:TSInstall python
for nim-treesitter. - Activate python virtual env before open neovim.
- Modify
vim.g.python3_host_prog={YOUR_PYTHON_ENV_PATH}
ininit.lua
. - Install
pynvim
into your python environment.
- add below line to
/lua/plugins/null-ls.lua
null_ls.setup({
-- some settings
null_ls.builtins.formatting.black
null_ls.builtins.diagnostics.flake8
})
- Install flake8 and black
If your virtual environment contains these packages, just
activate your virtual environment before open neovim.
Else, install via
Mason
NOTE:_ You can configure these packages using file (e.g. .flake8, pyproject.toml).
- add the following line to
/lua/plugins/null-ls.lua
null_ls.setup({
-- some settings
null_ls.builtins.formatting.terraform_fmt
})
- add the following line to
/lua/plugins/null-ls.lua
null_ls.setup({
-- some settings
null_ls.builtins.formatting.diagnostics.actionlint
})
- add the following line to
/lua/plugins/null-ls.lua
null_ls.setup({
-- some settings
null_ls.builtins.diagnostics.yamllint
})