|
4 年之前 | |
---|---|---|
.github | 4 年之前 | |
autoload | 4 年之前 | |
ftplugin | 4 年之前 | |
general | 4 年之前 | |
keys | 4 年之前 | |
lua | 4 年之前 | |
plug-config | 4 年之前 | |
snips | 5 年之前 | |
syntax | 5 年之前 | |
themes | 4 年之前 | |
utils | 4 年之前 | |
vim-plug | 4 年之前 | |
vscode | 4 年之前 | |
.gitignore | 4 年之前 | |
LICENSE | 5 年之前 | |
README.md | 4 年之前 | |
coc-settings.json | 5 年之前 | |
init.vim | 4 年之前 | |
nvcode.Dockerfile | 4 年之前 |
The following will install this config if you have an existing config it will move it to ~/.config/nvim.old
This script only supports Mac, Ubuntu and Arch
bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/nvim/master/utils/install.sh)
Mac
brew install neovim
brew install --HEAD neovim # Latest
Ubuntu
sudo apt install neovim
Arch
sudo pacman -S neovim
yay -S neovim-git # Latest
git clone https://github.com/ChristianChiarulli/nvim.git ~/.config/nvim
pip install pynvim
npm i -g neovim
pip install neovim-remote
This will install nvr
to ~/.local/bin
so you will need to add the following to your bashrc
or zshrc
export PATH=$HOME/.local/bin:$PATH
On Mac pbcopy should be builtin
Ubuntu
sudo apt install xsel
Arch
sudo pacman -S xsel
Make sure to add these paths somewhere in your config
let g:python3_host_prog = expand("<path to python with pynvim installed>")
let g:python3_host_prog = expand("~/.miniconda/envs/neovim/bin/python3.8") " <- example
let g:node_host_prog = expand("<path to node with neovim installed>")
let g:node_host_prog = expand("~/.nvm/versions/node/v12.16.1/bin/neovim-node-host") " <- example
Explanations and installation instruction can be found on my blog
Since CoC doesn't support all languages in there extensions
I recommend installing some language servers from scratch
and adding them to your coc-settings.json
file
Example:
npm i -g bash-language-server
"languageserver": {
"bash": {
"command": "bash-language-server",
"args": ["start"],
"filetypes": ["sh"],
"ignoredRootPaths": ["~"]
}
}
:UpdateRemotePlugins
To use TabNine enter the following in a buffer:
TabNine::config
NOTE This extension can take up a ton of memory
To use vim-gists you will need to configure the following:
git config --global github.user <username>
VSCodium contains build files to generate free release binaries of Microsoft's VS Code.
You can install it on multiple platforms:
Mac
brew cask install vscodium
Arch
yay -s vscodium-bin
Snap
snap install codium
The Neo Vim Extension is available in the VSCode marketplace
I recommend using this alongside the VSCode which-key
extension
Along with some of my config files you can find in utils/vscode_config
If anyone reading this has any suggestions about implementing any of the following I will accept a PR, but these are not priority.