diff --git a/.vimrc.keymap b/.vimrc.keymap index 956ba3ac..36e9c5a2 100755 --- a/.vimrc.keymap +++ b/.vimrc.keymap @@ -1,6 +1,6 @@ " key mappings let mapleader = "," -noremap s :update +nmap s :update nmap p :set paste! nmap h :set hlsearch! nmap t :wa :Make test @@ -24,22 +24,20 @@ imap " special chars nmap l :set list! -" search -nnoremap v :FzfFiles -nnoremap u :FzfTags -nnoremap j :call fzf#vim#tags("'".expand('')) -nnoremap / :Find -nnoremap ' :execute "Find " . expand("") +" search/navigate project structure +nmap / :LspWorkspaceSymbol +nmap r :LspReferences +nmap d :LspDeclaration +nmap D :LspDefinition +nmap :LspCodeAction " tree map n :NERDTreeToggle -" completion -inoremap pumvisible() ? "\" : "\" -inoremap pumvisible() ? "\" : "\" -inoremap pumvisible() ? "\" : "\" -imap (asyncomplete_force_refresh) +" quickfix +nmap q window:quickfix:toggle +" completion function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' @@ -49,4 +47,9 @@ inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ asyncomplete#force_refresh() -inoremap pumvisible() ? "\" : "\" + +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" + +inoremap pumvisible() ? "\" : "\" +imap (asyncomplete_force_refresh) diff --git a/.vimrc.plugins b/.vimrc.plugins index 1939c417..8f2ab30a 100644 --- a/.vimrc.plugins +++ b/.vimrc.plugins @@ -9,6 +9,8 @@ call plug#begin('~/.vim/plugged') Plug 'airblade/vim-gitgutter' Plug 'cespare/vim-toml' +Plug 'Chiel92/vim-autoformat' +Plug 'drmingdrmer/vim-toggle-quickfix' Plug 'godlygeek/tabular' Plug 'https://github.com/cyplo/vim-colors-solarized.git' Plug 'junegunn/fzf.vim'