refactor(all): replace vim.api.nvim_set_keymap with vim.keymap.set

This commit is contained in:
Fabrice Mouhartem 2024-12-11 15:54:38 +01:00
parent d0cbb36a44
commit ba9775b108
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -52,7 +52,8 @@ vim.api.nvim_create_autocmd("FileType", {
vim.g.vimtex_view_general_viewer = 'zathura' vim.g.vimtex_view_general_viewer = 'zathura'
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '
-- Legacy shortcut from my vim-latexsuite days -- Legacy shortcut from my vim-latexsuite days
vim.api.nvim_set_keymap("n", "<Leader>ls", ":VimtexView<CR>", -- FIX: doesnt seem to work…
vim.keymap.set("n", "<Leader>ls", ":VimtexView<CR>",
{ noremap = true, silent = true, desc = 'View [L]atex Document' }) { noremap = true, silent = true, desc = 'View [L]atex Document' })
vim.o.foldmethod = 'expr' vim.o.foldmethod = 'expr'