!!! Nvim from Vim
子标题为各个插件的安装注意项。
Pynvim implements support for python plugin in Nvim. It also works as a library for connecting to and scripting Nvim processes through its msgpack-rpc API 若使用 nvim,那么需要安装 pynvim[2] .
python3 -m pip install --user --upgrade pynvim
目录下是各种文件类型的配置
默认使用 python -m json.tool
来格式,存在以下问题:
- 格式化不如 jq 好看
- 不支持中文,将中文转化 unicode 码
这里通过配置 vrc_auto_format_response_patterns
来使用 jq
来格式化。在 Mac 下执行以下命令安装 jq:
brew install jq
更方便查看某个文件或某行的更新历史
记录 zsh + oh-my-zsh 的安装和使用
配置保存在 dotfiles repo 里。
zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? y
[https://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories]
sudo chmod -R 755 /usr/local/share/zsh
sudo chown -R root:staff /usr/local/share/zsh
zsh-users / zsh-autosuggestions,需要手动安装到 oh-my-zsh/custom/plugins/ 目录下。
[1] Greg Owen: Using a bare Git repo to get version control for my dotfiles
[2] neovim: NVIM REFERENCE MANUAL, Transitioning from Vim
[5] nvim-lspconfig's WIKI: Autocompletion