From ba9775b108ea967f38a723012e9c7257674d0ec8 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Wed, 11 Dec 2024 15:54:38 +0100 Subject: [PATCH] refactor(all): replace `vim.api.nvim_set_keymap` with `vim.keymap.set` --- lua/autocommands.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/autocommands.lua b/lua/autocommands.lua index a0d547c..e196280 100644 --- a/lua/autocommands.lua +++ b/lua/autocommands.lua @@ -52,7 +52,8 @@ vim.api.nvim_create_autocmd("FileType", { vim.g.vimtex_view_general_viewer = 'zathura' vim.g.maplocalleader = ' ' -- Legacy shortcut from my vim-latexsuite days - vim.api.nvim_set_keymap("n", "ls", ":VimtexView", + -- FIX: doesn’t seem to work… + vim.keymap.set("n", "ls", ":VimtexView", { noremap = true, silent = true, desc = 'View [L]atex Document' }) vim.o.foldmethod = 'expr'