summaryrefslogtreecommitdiff
path: root/config/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'config/vim/vimrc')
-rw-r--r--config/vim/vimrc114
1 files changed, 57 insertions, 57 deletions
diff --git a/config/vim/vimrc b/config/vim/vimrc
index 74515ba..f8258d1 100644
--- a/config/vim/vimrc
+++ b/config/vim/vimrc
@@ -53,63 +53,63 @@ Plug 'preservim/vim-markdown'
"let g:vim_markdown_json_frontmatter = 1
-"Plug 'neoclide/coc.nvim'
-"hi CocInlayHint ctermbg=Black ctermfg=Gray
-"
-"set updatetime=300
-"set signcolumn=yes
-"
-"nmap <silent> [g <Plug>(coc-diagnostic-prev)
-"nmap <silent> ]g <Plug>(coc-diagnostic-next)
-"
-"nmap <silent> gd <Plug>(coc-definition)
-"nmap <silent> gy <Plug>(coc-type-definition)
-"nmap <silent> gi <Plug>(coc-implementation)
-"nmap <silent> gr <Plug>(coc-references)
-"
-"xmap <leader>f <Plug>(coc-format-selected)
-"nmap <leader>f <Plug>(coc-format-selected)
-"
-"nmap <leader>rn <Plug>(coc-rename)
-"nmap <silent> <leader>re <Plug>(coc-codeaction-refactor)
-"xmap <silent> <leader>r <Plug>(coc-codeaction-refactor-selected)
-"" nmap <silent> <leader>r <Plug>(coc-codeaction-refactor-selected)
-"
-"inoremap <silent><expr> <TAB>
-" \ coc#pum#visible() ? coc#pum#next(1) :
-" \ CheckBackspace() ? "\<Tab>" :
-" \ coc#refresh()
-"inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
-"
-"inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
-" \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
-"
-"function! CheckBackspace() abort
-" let col = col('.') - 1
-" return !col || getline('.')[col - 1] =~# '\s'
-"endfunction
-"
-"
-"if has('nvim')
-" inoremap <silent><expr> <c-space> coc#refresh()
-"else
-" inoremap <silent><expr> <c-@> coc#refresh()
-"endif
-"
-"xmap <leader>a <Plug>(coc-codeaction-selected)
-"nmap <leader>a <Plug>(coc-codeaction-selected)
-"
-"" autocmd CursorHold * silent call CocActionAsync('highlight')
-"
-"function! ShowDocumentation()
-" if CocAction('hasProvider', 'hover')
-" call CocActionAsync('doHover')
-" else
-" call feedkeys('K', 'in')
-" endif
-"endfunction
-"
-"autocmd FileType python let b:coc_root_patterns = ['.git', '.env', '.']
+Plug 'neoclide/coc.nvim'
+hi CocInlayHint ctermbg=Black ctermfg=Gray
+
+set updatetime=300
+set signcolumn=yes
+
+nmap <silent> [g <Plug>(coc-diagnostic-prev)
+nmap <silent> ]g <Plug>(coc-diagnostic-next)
+
+nmap <silent> gd <Plug>(coc-definition)
+nmap <silent> gy <Plug>(coc-type-definition)
+nmap <silent> gi <Plug>(coc-implementation)
+nmap <silent> gr <Plug>(coc-references)
+
+xmap <leader>f <Plug>(coc-format-selected)
+nmap <leader>f <Plug>(coc-format-selected)
+
+nmap <leader>rn <Plug>(coc-rename)
+nmap <silent> <leader>re <Plug>(coc-codeaction-refactor)
+xmap <silent> <leader>r <Plug>(coc-codeaction-refactor-selected)
+" nmap <silent> <leader>r <Plug>(coc-codeaction-refactor-selected)
+
+inoremap <silent><expr> <TAB>
+ \ coc#pum#visible() ? coc#pum#next(1) :
+ \ CheckBackspace() ? "\<Tab>" :
+ \ coc#refresh()
+inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
+
+inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
+ \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
+
+function! CheckBackspace() abort
+ let col = col('.') - 1
+ return !col || getline('.')[col - 1] =~# '\s'
+endfunction
+
+
+if has('nvim')
+ inoremap <silent><expr> <c-space> coc#refresh()
+else
+ inoremap <silent><expr> <c-@> coc#refresh()
+endif
+
+xmap <leader>a <Plug>(coc-codeaction-selected)
+nmap <leader>a <Plug>(coc-codeaction-selected)
+
+" autocmd CursorHold * silent call CocActionAsync('highlight')
+
+function! ShowDocumentation()
+ if CocAction('hasProvider', 'hover')
+ call CocActionAsync('doHover')
+ else
+ call feedkeys('K', 'in')
+ endif
+endfunction
+
+autocmd FileType python let b:coc_root_patterns = ['.git', '.env', '.']
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'