Skip to content

Instantly share code, notes, and snippets.

@jeremejazz
Last active February 21, 2018 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremejazz/a7b3a9110ea42b04c897057526703f61 to your computer and use it in GitHub Desktop.
Save jeremejazz/a7b3a9110ea42b04c897057526703f61 to your computer and use it in GitHub Desktop.
Neovim Configuration
" NeoVim Configuration
" ~/.config/nvim/init.vim
" Check if Plug is already installed. make sure curl is installed first
" run PlugInstall afterwards
if empty(glob("~/.local/share/nvim/site/autoload/plug.vim"))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
auto VimEnter * PlugInstall
endif
set number
" Fix for annoying character
set guicursor=
set completeopt-=preview
set statusline=%{fugitive#statusline()}
set splitbelow
call plug#begin('~/.local/share/nvim/plugged')
" for deoplete make sure python3 is enabled first
" :echo has("python3")
" if 0, pip3 install neovim
" update neovim, pip3 install --upgrade neovim
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" Plug 'severin-lemaignan/vim-minimap'
Plug 'fatih/vim-go'
Plug 'zchee/deoplete-go', { 'do': 'make'}
Plug 'mattn/emmet-vim'
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'mklabs/split-term.vim'
Plug 'scrooloose/nerdtree'
Plug 'zchee/deoplete-jedi'
Plug 'altercation/vim-colors-solarized'
call plug#end()
" For Neovim 0.1.3 and 0.1.4
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
" Theme
syntax enable
colorscheme solarized8_dark
let g:deoplete#enable_at_startup = 1
let g:deoplete#sources#go#gocode_binary = $GOPATH.'/bin/gocode'
let g:deoplete#sources#go#use_cache = 1
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
"Keymapping"
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
map <C-n> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment