I FIXED LATEX
This commit is contained in:
parent
ccf8e32ef2
commit
7bac1c7a58
@ -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 = '<tab>'
|
||||||
|
vim.g.UltiSnipsJumpForwardTrigger = '<C-h>'
|
||||||
|
vim.g.UltiSnipsJumpBackwardTrigger = '<C-b>'
|
||||||
|
local opts = { buffer = true, remap = true, silent = true }
|
||||||
|
vim.keymap.set('i', '<tab>', '<C-R>=UltiSnips#ExpandSnippet()<CR>', opts)
|
||||||
|
vim.keymap.set('i', '<C-h>', '<C-R>=UltiSnips#JumpForwards()<CR>', opts)
|
||||||
|
vim.keymap.set('i', '<C-b>', '<C-R>=UltiSnips#JumpBackwards()<CR>', opts)
|
||||||
|
vim.keymap.set('s', '<C-h>', '<Esc>:call UltiSnips#JumpForwards()<CR>', opts)
|
||||||
|
vim.keymap.set('s', '<C-b>', '<Esc>:call UltiSnips#JumpBackwards()<CR>', opts)
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- toggles folds
|
-- toggles folds
|
||||||
map('n', '<Leader>pc', 'za', { noremap = true })
|
map('n', '<Leader>pc', 'za', { noremap = true })
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user