From 7bac1c7a58763e4e42fe352a1cf9cd041ec40340 Mon Sep 17 00:00:00 2001 From: h Date: Sun, 14 Jun 2026 16:16:45 -0400 Subject: [PATCH] I FIXED LATEX --- nvim-lazy-profile/lua/lsp.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/nvim-lazy-profile/lua/lsp.lua b/nvim-lazy-profile/lua/lsp.lua index 762cacb..0340b56 100644 --- a/nvim-lazy-profile/lua/lsp.lua +++ b/nvim-lazy-profile/lua/lsp.lua @@ -241,6 +241,26 @@ vim.api.nvim_create_autocmd( }) +-- force keybinds on latex files +vim.api.nvim_create_autocmd( + { 'FileType', + }, { + pattern = { "latex", "plaintex", "tex" }, + callback = function() + vim.g.UltiSnipsExpandTrigger = '' + vim.g.UltiSnipsJumpForwardTrigger = '' + vim.g.UltiSnipsJumpBackwardTrigger = '' + local opts = { buffer = true, remap = true, silent = true } + vim.keymap.set('i', '', '=UltiSnips#ExpandSnippet()', opts) + vim.keymap.set('i', '', '=UltiSnips#JumpForwards()', opts) + vim.keymap.set('i', '', '=UltiSnips#JumpBackwards()', opts) + vim.keymap.set('s', '', ':call UltiSnips#JumpForwards()', opts) + vim.keymap.set('s', '', ':call UltiSnips#JumpBackwards()', opts) + end + }) + + + -- toggles folds map('n', 'pc', 'za', { noremap = true })