Skip to content

Instantly share code, notes, and snippets.

@ivyleavedtoadflax
Last active April 4, 2020 23:25
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 ivyleavedtoadflax/a9d8172213486aa87c2200064210ddb2 to your computer and use it in GitHub Desktop.
Save ivyleavedtoadflax/a9d8172213486aa87c2200064210ddb2 to your computer and use it in GitHub Desktop.
NeoVim config
call plug#begin('~/.vim/plugged')
Plug 'Valloric/YouCompleteMe'
Plug 'jreybert/vimagit'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-unimpaired'
Plug 'w0rp/ale'
Plug 'tpope/vim-sensible'
Plug 'dracula/vim'
Plug 'rkulla/pydiction'
Plug 'Vimjas/vim-python-pep8-indent'
Plug 'chrisbra/csv.vim'
Plug 'plytophogy/vim-virtualenv'
Plug 'scrooloose/nerdtree'
Plug 'alfredodeza/pytest.vim'
Plug 'mattn/vim-sqlfmt'
Plug 'numirias/semshi', {'do':':UpdateRemotePlugins'}
call plug#end()
filetype plugin indent on
let g:pydiction_location = '/home/user/.vim/bundle/pydiction/complete-dict'
"let g:loaded_python_provider=1
"let g:loaded_python3_provider=1
let g:ale_python_flake8_use_global = 1
let g:ale_python_flake8_executable = '/usr/bin/python3.6'
let g:python_host_prog = '/home/matthew/.pyenv/versions/2.7.15/bin/python'
let g:python3_host_prog = '/home/matthew/.virtualenvs/neovim3/bin/python3'
let g:ycm_server_python_interpreter = '/usr/bin/python3.6'
let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'
"Spaces & Tabs {{{
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set shiftwidth=4 " number of spaces to use for autoindent
set expandtab " tabs are space
set autoindent
set copyindent " copy indent from the previous line
" }}} Spaces & Tabs
set number
set exrc
set secure
inoremap jjj <ESC><CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
map <C-n> :NERDTreeToggle<CR>
map <C-t><left> :tabl<cr>
map <C-t><right> :tabr<cr>
set colorcolumn=81
" Enable fixers for python linting
let g:ale_fixers = ['trim_whitespace', 'remove_trailing_lines', 'isort', 'add_blank_lines_for_python_control_statements', 'autopep8', 'black']
" Let vim play nicely with yaml files
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Set custom highlights for Gdiff
hi DiffAdd guifg=NONE ctermfg=NONE guibg=#464632 ctermbg=238 gui=NONE cterm=NONE
hi DiffChange guifg=NONE ctermfg=NONE guibg=#335261 ctermbg=239 gui=NONE cterm=NONE
hi DiffDelete guifg=#f43753 ctermfg=203 guibg=#79313c ctermbg=237 gui=NONE cterm=NONE
hi DiffText guifg=NONE ctermfg=NONE guibg=NONE ctermbg=NONE gui=reverse cterm=reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment