My favorite VIM based IDE !!

Christian Chiarulli adf233d87e Merge pull request #42 from vladdoster/patch-1 5 роки тому
autoload c283a7cb68 removing old plug.vim 5 роки тому
general 79327f6f26 added xtabline and undotree 5 роки тому
keys 0a8ad44a19 added far find and replace 5 роки тому
lua d45e2094d5 git integration 5 роки тому
plug-config 0a8ad44a19 added far find and replace 5 роки тому
snips 3bb390f1eb I hate vimwiki 5 роки тому
syntax 0a8ad44a19 added far find and replace 5 роки тому
themes 79327f6f26 added xtabline and undotree 5 роки тому
utils 122e4f0b44 fix a fat finger typo 5 роки тому
vim-plug 0a8ad44a19 added far find and replace 5 роки тому
vscode 53123f954c added vscode support 5 роки тому
.gitignore f4c1e8dc3b updated paths.vim path 5 роки тому
README.md be378dde1a update readme 5 роки тому
coc-settings.json 7f7548ea02 don't use vim devicons I keep forgetting 5 роки тому
init.vim 0a8ad44a19 added far find and replace 5 роки тому
nvim-mach2.Dockerfile 88f156841b udpate docker install 5 роки тому

README.md

Nvim Mach 2

Nvim Mach 2 pic

Install in one command

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)

Install Neovim

  • On Mac

    brew install neovim
    
  • Ubuntu

    sudo apt install neovim
    
  • Arch

    sudo pacman -S neovim
    

Clone this repo into your config

git clone https://github.com/ChristianChiarulli/nvim.git ~/.config/nvim

Install python & node support

pip install pynvim
npm i -g neovim

Install Neovim remote

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

Install clipboard support

  • On mac pbcopy should be builtin

  • On Ubuntu

    sudo apt install xsel
    
  • On Arch Linux

    sudo pacman -S xsel
    

(Optional) Install python & node support using virtual environments

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

List of programs you should install

  • ranger
  • ueberzug
  • ripgrep
  • silver_searcher
  • fd
  • universal-ctags
  • lazy git
  • lazy docker

Explanations and installation instruction can be found on my blog

Language Servers

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:

  • bash

npm i -g bash-language-server

  "languageserver": {
  "bash": {
    "command": "bash-language-server",
    "args": ["start"],
    "filetypes": ["sh"],
    "ignoredRootPaths": ["~"]
    }
  }

TODO

  • async task/run
  • vimspector
  • git messenger
  • live server (bracey)
  • markdown preview
  • neomake
  • markdown table
  • neovide
  • add better whitespace plugin and a toggle, video about clean code maybe
  • People asked about vimwiki I kinda hate it but maybe I'll add it

VSCode integration

We will be integrating with VSCode using this