call plug#begin() Plug 'tpope/vim-sensible' Plug 'tpope/vim-commentary' Plug 'airblade/vim-gitgutter' Plug 'ctrlpvim/ctrlp.vim' Plug 'dense-analysis/ale' Plug 'mitjafelicijan/sherbet' call plug#end() colorscheme sherbet set number relativenumber autoindent signcolumn=yes cursorline ignorecase set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 set encoding=utf8 spelllang=en_us set backspace=2 scrolloff=4 set shiftwidth=4 tabstop=4 nnoremap :bnext nnoremap :bprevious nnoremap :copen nnoremap :CtrlPBuffer nnoremap :ALEHover nnoremap :ALEDetail nnoremap r :let @/ = '' nmap gr :ALEFindReferences nmap gd :ALEGoToDefinition nmap re :ALERename let g:ale_completion_enabled = 0 let g:ale_hover_to_floating_preview = 1 let g:ale_detail_to_floating_preview = 1 let g:ale_floating_window_border = 0 let g:ale_virtualtext_cursor = 0 let g:ale_set_quickfix = 1 let g:ale_linters = { 'cpp': ['clangd'], 'c': ['clangd'] } let g:ale_fixers = { 'cpp': ['clangd'], 'c': ['clangd'] } let g:ctrlp_use_caching = 0 let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'