2021-09-22 12:44:38 +00:00
|
|
|
call plug#begin('~/.local/share/nvim/plugged')
|
2021-08-16 13:04:35 +00:00
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'morhetz/gruvbox'
|
2021-10-03 11:50:16 +00:00
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
2021-08-16 13:04:35 +00:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
"Theme
|
|
|
|
colorscheme gruvbox
|
|
|
|
|
|
|
|
"General Options
|
|
|
|
set number relativenumber
|
|
|
|
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
|
|
|
set splitright
|
2021-10-03 11:50:16 +00:00
|
|
|
set scrolloff=10
|
2021-08-16 13:04:35 +00:00
|
|
|
|
2021-08-16 13:49:50 +00:00
|
|
|
tnoremap <Esc> <C-\><C-n>
|
2021-10-03 11:50:16 +00:00
|
|
|
command TMK w | call system("latexmk -pdf && latexmk -c")
|
2021-08-16 13:49:50 +00:00
|
|
|
|
2021-10-21 19:07:07 +00:00
|
|
|
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
|
|
|
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
|
|
|
|
|
|
|
" coc.nvim Plugins
|
|
|
|
let g:coc_global_extensions = [
|
|
|
|
\'coc-pairs',
|
|
|
|
\'coc-json',
|
|
|
|
\'coc-pyright',
|
|
|
|
\'coc-go',
|
|
|
|
\'coc-rust-analyzer',
|
|
|
|
\'coc-clangd',
|
|
|
|
\'coc-html',
|
|
|
|
\'coc-css',
|
|
|
|
\'coc-tsserver'
|
|
|
|
\]
|
2021-11-29 21:58:27 +00:00
|
|
|
|
|
|
|
" GoTo code navigation.
|
|
|
|
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)
|