-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
37 lines (27 loc) · 1.27 KB
/
dot_vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
call plug#begin('/usr/local/bin/nvim')
Plug 'fladson/vim-kitty'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
"" Update ~/** dotfiles when saving anything in the chezmoi source dir
autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --source-path "%"
"" Add comment highlighting to coc.nvim
autocmd FileType json syntax match Comment +\/\/.\+$+
set tabstop=4
set shiftwidth=4
set expandtab " Replace tab indentation with spaces
set number " Show line numbers
""""" coc.nvim mappings
" Help Vim recognize *.sbt and *.sc as Scala files
au BufRead,BufNewFile *.sbt,*.sc set filetype=scala
" Used to expand decorations in worksheets
nmap <Leader>ws <Plug>(coc-metals-expand-decoration)
" Toggle panel with Tree Views
nnoremap <silent> <space>t :<C-u>CocCommand metals.tvp<CR>
" Toggle Tree View 'metalsPackages'
nnoremap <silent> <space>tp :<C-u>CocCommand metals.tvp metalsPackages<CR>
" Toggle Tree View 'metalsCompile'
nnoremap <silent> <space>tc :<C-u>CocCommand metals.tvp metalsCompile<CR>
" Toggle Tree View 'metalsBuild'
nnoremap <silent> <space>tb :<C-u>CocCommand metals.tvp metalsBuild<CR>
" Reveal current current class (trait or object) in Tree View 'metalsPackages'
nnoremap <silent> <space>tf :<C-u>CocCommand metals.revealInTreeView metalsPackages<CR>