diff --git a/ftplugin/tex.lua b/ftplugin/tex.lua new file mode 100644 index 0000000..8e220af --- /dev/null +++ b/ftplugin/tex.lua @@ -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", "ls", ":VimtexView", {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 diff --git a/lua/mappings.lua b/lua/mappings.lua index e1c78d0..5986542 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -7,6 +7,10 @@ for key, binding in pairs(map_list) do vim.api.nvim_set_keymap("n", key, binding .. "", {noremap = true, silent = true}) end +-- spelling maps +vim.api.nvim_set_keymap("n", "s", "mz[s1z=`z", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "à", "]s", {noremap = true, silent = true}) + -- [[ kickstart.nvim ]] -- Keymaps for better default experience -- See `:help vim.keymap.set()`