aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/tex/tex.vim
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-09-20 13:57:02 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-09-20 13:57:02 +0200
commitf154d3f778214e5cca7f2e6fb9412184b57edf04 (patch)
tree072ec5bf989c2328944414e7708ba5ae9671a8ed /stow/vim/.vim/ftplugin/tex/tex.vim
parent26fdb2bcb24881a4c3ab6a1859bdcb9b646aa876 (diff)
downloadconfigs-f154d3f778214e5cca7f2e6fb9412184b57edf04.tar.gz
configs-f154d3f778214e5cca7f2e6fb9412184b57edf04.zip
Changes mostly to vim, trying neovim LSP.
Diffstat (limited to 'stow/vim/.vim/ftplugin/tex/tex.vim')
-rw-r--r--stow/vim/.vim/ftplugin/tex/tex.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/stow/vim/.vim/ftplugin/tex/tex.vim b/stow/vim/.vim/ftplugin/tex/tex.vim
index 87f3c88..f84f73e 100644
--- a/stow/vim/.vim/ftplugin/tex/tex.vim
+++ b/stow/vim/.vim/ftplugin/tex/tex.vim
@@ -6,10 +6,15 @@
call matchadd('ColorColumn', '\%91v', 100)
setlocal textwidth=80
+setlocal omnifunc=v:lua.vim.lsp.omnifunc
+setlocal formatexpr=v:lua.vim.lsp.formatexpr()
+
let mapleader = " "
nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/tex/tex.vim<CR>
nnoremap <buffer> <leader>e :Errors<CR>
+nnoremap <buffer> K :lua vim.lsp.buf.hover()<CR>
+nnoremap <buffer> gd :lua vim.lsp.buf.definition()<CR>
" proselint not enabled by default (it's slow)
"nnoremap <buffer> <leader>sp :SyntasticCheck proselint<CR>