Fix autocommand for latex
This commit is contained in:
parent
7b66e26511
commit
df316128cd
@ -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 = "<Plug>(vimtex-delim-change-math)" },
|
||||
{ mode = "n", source = "csd", target = "lsd", command = "<Plug>(vimtex-delim-change-math)" },
|
||||
{ mode = "n", source = "csc", target = "lsc", command = "<Plug>(vimtex-cmd-change)" },
|
||||
{ mode = "n", source = "cse", target = "lse", command = "<Plug>(vimtex-env-change)" },
|
||||
{ mode = "n", source = "cs$", target = "ls$", command = "<Plug>(vimtex-env-change-math))" },
|
||||
|
Loading…
Reference in New Issue
Block a user