|
il y a 5 ans | |
---|---|---|
autoload | il y a 5 ans | |
general | il y a 5 ans | |
keys | il y a 5 ans | |
lua | il y a 5 ans | |
plug-config | il y a 5 ans | |
themes | il y a 5 ans | |
utils | il y a 5 ans | |
vim-plug | il y a 5 ans | |
vscode | il y a 5 ans | |
.gitignore | il y a 5 ans | |
README.md | il y a 5 ans | |
coc-settings.json | il y a 5 ans | |
init.vim | il y a 5 ans |
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
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": ["~"]
}
}
We will be integrating with VSCode using this