From df316128cd01ef894f088a9bc948a24d928ab322 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Wed, 3 Jan 2024 15:31:45 +0100 Subject: [PATCH] Fix autocommand for latex --- after/plugin/mappings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/after/plugin/mappings.lua b/after/plugin/mappings.lua index 0a4ea0c..1eb0b44 100644 --- a/after/plugin/mappings.lua +++ b/after/plugin/mappings.lua @@ -15,7 +15,7 @@ end -- [[ vimtex ]] -- Some BÉPO mappings for vimtex -local texgroup = vim.api.nvim_create_augroup("latex", { clear = true }) +local texgroup = vim.api.nvim_create_augroup("latex-after", { clear = true }) vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { pattern = { "*.tex", "*.bib", "*.cls", "*.tikz", }, @@ -23,7 +23,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { callback = function() local vimtex_remaps = { -- c <-> t - { mode = "n", source = "csd", target = "tsd", command = "(vimtex-delim-change-math)" }, + { mode = "n", source = "csd", target = "lsd", command = "(vimtex-delim-change-math)" }, { mode = "n", source = "csc", target = "lsc", command = "(vimtex-cmd-change)" }, { mode = "n", source = "cse", target = "lse", command = "(vimtex-env-change)" }, { mode = "n", source = "cs$", target = "ls$", command = "(vimtex-env-change-math))" },