|
преди 5 години | |
---|---|---|
autoload | преди 5 години | |
general | преди 5 години | |
keys | преди 5 години | |
lua | преди 5 години | |
plug-config | преди 5 години | |
snips | преди 5 години | |
syntax | преди 5 години | |
themes | преди 5 години | |
utils | преди 5 години | |
vim-plug | преди 5 години | |
.gitignore | преди 5 години | |
LICENSE | преди 5 години | |
README.md | преди 5 години | |
coc-settings.json | преди 5 години | |
init.vim | преди 5 години | |
nvim-mach2.Dockerfile | преди 5 години |
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)
On Mac
brew install neovim
Ubuntu
sudo apt install neovim
Arch
sudo pacman -S neovim
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
On Ubuntu
sudo apt install xsel
On Arch Linux
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
To use vim-gists you will need to configure the following:
git config --global github.user <username>
If anyone reading this has any suggestions about implementing any of the following I will accept a PR, but these are not priority.