update vim/nvim config files
This commit is contained in:
parent
cd7524e5dd
commit
fe686c6072
1 changed files with 26 additions and 36 deletions
|
@ -12,46 +12,41 @@ if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" disable ALE LSP since we have coc.nvim
|
||||||
|
let g:ale_disable_lsp = 1
|
||||||
|
|
||||||
call plug#begin($HOME.'/.nvim/plugged')
|
call plug#begin($HOME.'/.nvim/plugged')
|
||||||
|
|
||||||
if has('nvim')
|
Plug 'morhetz/gruvbox' " color scheme
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
||||||
else
|
|
||||||
Plug 'Shougo/deoplete.nvim'
|
|
||||||
Plug 'roxma/nvim-yarp'
|
|
||||||
Plug 'roxma/vim-hug-neovim-rpc'
|
|
||||||
endif
|
|
||||||
let g:deoplete#enable_at_startup = 1
|
|
||||||
|
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'airblade/vim-gitgutter' " show file changes for git VCS
|
||||||
Plug 'Chiel92/vim-autoformat'
|
Plug 'bronson/vim-trailing-whitespace' " per the name, remove trailing whitespace
|
||||||
Plug 'Lokaltog/vim-easymotion'
|
Plug 'easymotion/vim-easymotion' " easy code navigation with <Leader><Leader>
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'editorconfig/editorconfig-vim' " EditorConfig support
|
||||||
Plug 'bling/vim-airline'
|
Plug 'fatih/vim-go', { 'do': ':exec GoPostUpdate()' } " THE Go plugin
|
||||||
Plug 'bronson/vim-trailing-whitespace'
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install } } " fast file name search
|
||||||
Plug 'fatih/vim-go', { 'do': ':exec GoPostUpdate()' }
|
Plug 'majutsushi/tagbar' " class & variable lister
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'mg979/vim-visual-multi', { 'branch': 'master' } " multi cursor support
|
||||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
|
Plug 'mhinz/vim-signify' " show file changes for pretty much any VCS
|
||||||
Plug 'majutsushi/tagbar'
|
Plug 'mileszs/ack.vim' " easy code searching
|
||||||
Plug 'moll/vim-bbye'
|
Plug 'moll/vim-bbye' " Bdelete a buffer without removing the split
|
||||||
Plug 'rking/ag.vim'
|
Plug 'neoclide/coc.nvim', {'branch': 'release'} " ezpz LSP support
|
||||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
Plug 'scrooloose/nerdcommenter' " perform quick comments with <Leader>
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } " shows a directory view
|
||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'sheerun/vim-polyglot' " highlighting & indent for languages
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'tpope/vim-fugitive' " awesome git support
|
||||||
Plug 'terryma/vim-multiple-cursors'
|
Plug 'tpope/vim-sensible' " some obviously sane default config changes
|
||||||
Plug 'tmux-plugins/vim-tmux-focus-events'
|
Plug 'tpope/vim-surround' " easy surrounding modifier
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'vim-airline/vim-airline' " nice lightweight status line
|
||||||
Plug 'tpope/vim-sensible'
|
Plug 'vim-airline/vim-airline-themes' " themes for vim-airline
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'w0rp/ale' " async linting engine
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
|
||||||
Plug 'w0rp/ale'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" speed improvements for fzf
|
" speed improvements for fzf
|
||||||
if executable('ag')
|
if executable('ag')
|
||||||
let $FZF_DEFAULT_COMMAND = 'ag --skip-vcs-ignores --nocolor -g "" -l'
|
let $FZF_DEFAULT_COMMAND = 'ag --skip-vcs-ignores --nocolor -g "" -l'
|
||||||
|
let g:ackprg = 'ag --vimgrep'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
autocmd vimenter * ++nested colorscheme gruvbox " Color scheme
|
autocmd vimenter * ++nested colorscheme gruvbox " Color scheme
|
||||||
|
@ -97,13 +92,8 @@ let g:go_metalinter_command = "golangci-lint"
|
||||||
" Lint Go on save
|
" Lint Go on save
|
||||||
let g:go_metalinter_autosave = 1
|
let g:go_metalinter_autosave = 1
|
||||||
|
|
||||||
" enable autocompletion for Go
|
|
||||||
call deoplete#custom#option('omni_patterns', { 'go': '[^. *\t]\.\w*' })
|
|
||||||
|
|
||||||
" Key mappings
|
" Key mappings
|
||||||
" use FZF for control p
|
" use FZF for control p
|
||||||
map <C-p> :FZF <CR>
|
map <C-p> :FZF <CR>
|
||||||
map <F2> :NERDTreeToggle <CR>
|
map <F2> :NERDTreeToggle <CR>
|
||||||
map <F3> :TagbarToggle <CR>
|
map <F3> :TagbarToggle <CR>
|
||||||
" clear search highlight until next search
|
|
||||||
map <F4> :noh <CR>
|
|
||||||
|
|
Loading…
Reference in a new issue