add vimtex configuration
This commit is contained in:
10
ftplugin/tex.lua
Normal file
10
ftplugin/tex.lua
Normal file
@ -0,0 +1,10 @@
|
||||
-- vimtex configuration
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
vim.g.maplocalleader = ' '
|
||||
-- Legacy shortcut from my vim-latexsuite days
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ls", ":VimtexView<CR>", {noremap = true, silent = true, desc = 'View [L]atex Document'})
|
||||
|
||||
vim.o.foldmethod = 'expr'
|
||||
vim.o.foldexpr='vimtex#fold#level(v:lnum)'
|
||||
vim.o.foldtext='vimtex#fold#text()'
|
||||
vim.o.spell = true
|
Reference in New Issue
Block a user