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')
|
call plug#begin('~/.vim/plugged')
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
Plug 'neovim/nvim-lspconfig'
|
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
|
endif
|
||||||
Plug 'adelarsq/vim-matchit'
|
Plug 'adelarsq/vim-matchit'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'bronson/vim-trailing-whitespace'
|
Plug 'bronson/vim-trailing-whitespace'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'ms-jpq/chadtree'
|
||||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'kien/ctrlp.vim'
|
Plug 'kien/ctrlp.vim'
|
||||||
Plug 'wincent/ferret'
|
Plug 'wincent/ferret'
|
||||||
|
@ -17,6 +19,7 @@ Plug 'justinmk/vim-sneak'
|
||||||
Plug 'alvan/vim-closetag'
|
Plug 'alvan/vim-closetag'
|
||||||
Plug 'mipmip/vim-fluid'
|
Plug 'mipmip/vim-fluid'
|
||||||
Plug 'chrisbra/Colorizer'
|
Plug 'chrisbra/Colorizer'
|
||||||
|
Plug 'puremourning/vimspector'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
|
@ -25,8 +28,11 @@ endif
|
||||||
|
|
||||||
"" NERDTree config
|
"" NERDTree config
|
||||||
" Autostart NERDTree on start
|
" Autostart NERDTree on start
|
||||||
autocmd vimenter * NERDTree | wincmd w
|
" autocmd vimenter * NERDTree | wincmd w
|
||||||
let NERDTreeShowHidden=1
|
" let NERDTreeShowHidden=1
|
||||||
|
|
||||||
|
"" CHADTree config
|
||||||
|
autocmd VimEnter * CHADopen --nofocus
|
||||||
|
|
||||||
" Close vim if the only window left open is a NERDTree
|
" Close vim if the only window left open is a NERDTree
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
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
|
"" Vim Closetag
|
||||||
let g:closetag_filenames = '*.xml,*.xlf,*.html,*.xhtml,*.phtml'
|
let g:closetag_filenames = '*.xml,*.xlf,*.html,*.xhtml,*.phtml'
|
||||||
|
|
||||||
"" completion-nvim
|
"" coq nvim
|
||||||
let g:completion_trigger_character = ['.', '::', '>']
|
let g:coq_settings = { 'auto_start': 'shut-up' }
|
||||||
let g:completion_trigger_keyword_length = 3
|
|
||||||
|
"" vimspector
|
||||||
|
let g:vimspector_enable_mappings = 'HUMAN'
|
||||||
|
let g:vimspector_install_gadgets = [ 'CodeLLDB' ]
|
||||||
|
|
||||||
"" Vim Config
|
"" Vim Config
|
||||||
" Set completeopt to have a better completion experience
|
" Set completeopt to have a better completion experience
|
||||||
|
|
Loading…
Reference in a new issue