Overwrite .vimrc for C++ development and better LSP
This commit is contained in:
parent
a3cfc2432b
commit
4725220ba7
1 changed files with 17 additions and 8 deletions
25
.vimrc
25
.vimrc
|
@ -1,13 +1,15 @@
|
|||
call plug#begin('~/.vim/plugged')
|
||||
if has('nvim')
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'nvim-lua/completion-nvim'
|
||||
Plug 'ms-jpq/coq_nvim'
|
||||
Plug 'ms-jpq/coq.artifacts'
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'jose-elias-alvarez/null-ls.nvim'
|
||||
endif
|
||||
Plug 'adelarsq/vim-matchit'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'bronson/vim-trailing-whitespace'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||
Plug 'ms-jpq/chadtree'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'kien/ctrlp.vim'
|
||||
Plug 'wincent/ferret'
|
||||
|
@ -17,6 +19,7 @@ Plug 'justinmk/vim-sneak'
|
|||
Plug 'alvan/vim-closetag'
|
||||
Plug 'mipmip/vim-fluid'
|
||||
Plug 'chrisbra/Colorizer'
|
||||
Plug 'puremourning/vimspector'
|
||||
call plug#end()
|
||||
|
||||
if has('nvim')
|
||||
|
@ -25,8 +28,11 @@ endif
|
|||
|
||||
"" NERDTree config
|
||||
" Autostart NERDTree on start
|
||||
autocmd vimenter * NERDTree | wincmd w
|
||||
let NERDTreeShowHidden=1
|
||||
" autocmd vimenter * NERDTree | wincmd w
|
||||
" let NERDTreeShowHidden=1
|
||||
|
||||
"" CHADTree config
|
||||
autocmd VimEnter * CHADopen --nofocus
|
||||
|
||||
" Close vim if the only window left open is a NERDTree
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
@ -41,9 +47,12 @@ let g:ctrlp_show_hidden = 1
|
|||
"" Vim Closetag
|
||||
let g:closetag_filenames = '*.xml,*.xlf,*.html,*.xhtml,*.phtml'
|
||||
|
||||
"" completion-nvim
|
||||
let g:completion_trigger_character = ['.', '::', '>']
|
||||
let g:completion_trigger_keyword_length = 3
|
||||
"" coq nvim
|
||||
let g:coq_settings = { 'auto_start': 'shut-up' }
|
||||
|
||||
"" vimspector
|
||||
let g:vimspector_enable_mappings = 'HUMAN'
|
||||
let g:vimspector_install_gadgets = [ 'CodeLLDB' ]
|
||||
|
||||
"" Vim Config
|
||||
" Set completeopt to have a better completion experience
|
||||
|
|
Loading…
Reference in a new issue