Compare commits

...

2 commits

Author SHA1 Message Date
Alyxia
4ca270760b
[nvim] Add TeX plugins 2022-09-25 11:21:55 +02:00
Alyxia
d2f964c742
[nvim] Fix some coc complaints 2022-09-25 11:21:30 +02:00
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
call extend(g:dotfiles_coc_extensions, {'coc-vimtex': 1})
call extend(g:dotfiles_coc_filetypes, {'tex': 1, 'cls': 1})

View file

@ -34,6 +34,7 @@ let s:plug = funcref('dotfiles#plugman#register')
" }}} " }}}
endif endif
endif endif
call s:plug('lervag/vimtex')
call s:plug('stevearc/vim-arduino') call s:plug('stevearc/vim-arduino')
call s:plug('luke-gru/vim-riml') call s:plug('luke-gru/vim-riml')
call s:plug('bhurlow/vim-parinfer') call s:plug('bhurlow/vim-parinfer')

View file

@ -6,6 +6,9 @@ nnoremap <C-t> :NERDTreeToggle<CR>
return !col || getline('.')[col - 1] =~ '\s' return !col || getline('.')[col - 1] =~ '\s'
endfunction endfunction
nmap <silent> <F3> <Plug>(coc-codeaction-line)
xmap <silent> <F3> <Plug>(coc-codeaction-selected)
inoremap <expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<CR>" inoremap <expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<CR>"
inoremap <silent><expr> <TAB> inoremap <silent><expr> <TAB>