My favorite VIM based IDE !!

Chris 07c81eaa31 update far window width 4 年 前
.github f5aef47d80 Create FUNDING.yml 4 年 前
autoload 013bccb990 updates 4 年 前
ftplugin 9379982b7e vscodium updates 4 年 前
general 8d8b68fe08 added highlighted yank for vscode 4 年 前
keys c88dc2bba7 update whichkey config 4 年 前
lua 787f9404cb new colorscheme 4 年 前
plug-config 07c81eaa31 update far window width 4 年 前
snips 3bb390f1eb I hate vimwiki 5 年 前
syntax 0a8ad44a19 added far find and replace 5 年 前
themes 73d89f8ca7 more theme updates 4 年 前
utils eac63ccf8e Merge pull request #54 from stealthanthrax/patch-1 4 年 前
vim-plug 8d8b68fe08 added highlighted yank for vscode 4 年 前
vscode 73c87f959e update vscode settings 4 年 前
.gitignore d7d88e0992 name change to NVCode 4 年 前
LICENSE 3a732aa7d4 Create LICENSE 5 年 前
README.md 5c1f705354 update settings 4 年 前
coc-settings.json 148fa549a4 setup basic ale stuff 5 年 前
init.vim c3402229fa fixed multiline comment 4 年 前
nvcode.Dockerfile 3a9311334c updates 4 年 前

README.md

NVCode

NVCode 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

  • Mac

    brew install neovim
    
    brew install --HEAD neovim # Latest
    
  • Ubuntu

    sudo apt install neovim
    
  • Arch

    sudo pacman -S neovim
    
    yay -S neovim-git # Latest
    

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

  • Ubuntu

    sudo apt install xsel
    
  • Arch

    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": ["~"]
    }
  }

For FAR to work

:UpdateRemotePlugins

TabNine

To use TabNine enter the following in a buffer:

TabNine::config

NOTE This extension can take up a ton of memory

Vim Gists

To use vim-gists you will need to configure the following:

git config --global github.user <username>

VSCodium & Neo Vim Extension

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

TODO

  • Better Documentation
  • Improve VSCode which-key config

CoC extensions to check out

  • coc-fzf
  • coc-stylelintplus
  • coc-floaterm
  • coc-actions
  • coc-bookmark

0.5

  • native lsp
  • treesitter

LOW PRIORITY TODO

If anyone reading this has any suggestions about implementing any of the following I will accept a PR, but these are not priority.

  • ale
  • multiple cursors
  • markdown table
  • spaceline (add colorscheme for mach2)
  • tpope/vim-dadbod
  • neovide
  • People asked about vimwiki I kinda hate it but maybe I'll add it
  • vimspector this is included but I don't plan on using it much
    • can be used with jdb, pdb, gdb, etc...
  • later manually link pylance
  • resize with arrows in addition to meta
  • how to support meta key on for macOS?