Overwrite .vimrc for C++ development and better LSP

This commit is contained in:
Leon Grünewald 2022-03-09 22:50:32 +01:00
parent a3cfc2432b
commit 4725220ba7

25
.vimrc
View file

@ -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