Skip to content

Commit

Permalink
chjanges
Browse files Browse the repository at this point in the history
  • Loading branch information
pcranaway committed Sep 24, 2021
1 parent 4ad91dc commit af5e07e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

" relational numbers (fun fact, I don't take advantage of them,
" but now it looks weird if they're not there)
set rnu
# set rnu

" syntax stuff
syntax on
Expand Down Expand Up @@ -101,6 +101,8 @@ Plug 'tpope/vim-vinegar'
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'
Plug 'morhetz/gruvbox'
Plug 'gleam-lang/gleam.vim'
call plug#end()

""""""""""""""""""""""""""""""""
Expand All @@ -118,11 +120,10 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
" FZF.VIM "
""""""""""""""""""""""""""""""""
nnoremap <C-p><C-f> :Files<CR>
nnoremap <C-p><C-c> :Colors<CR>
nnoremap <C-c><C-s> :Colors<CR>
nnoremap <C-p><C-b> :Buffers<CR>
nnoremap <C-p><C-g> :Commits<CR>

""""""""""""""""""""""""""""""""
" COC "
""""""""""""""""""""""""""""""""
Expand All @@ -141,6 +142,20 @@ function! s:check_back_space() abort
return !col || getline('.')[col - 1] =~# '\s'
endfunction

inoremap <silent><expr> <c-@> coc#refresh()
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
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)
nmap <silent> gf :CocFix<CR>
nnoremap <silent> K :call <SID>show_documentation()<CR>
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
""""""""""""""""""""""""""""""""
" Status Line "
""""""""""""""""""""""""""""""""
Expand Down

0 comments on commit af5e07e

Please sign in to comment.