cI: format

This commit is contained in:
Barrett Ruth 2026-03-05 22:08:33 -05:00
parent 615f4c1868
commit 17ce8599d0
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -137,7 +137,10 @@ return {
end end
end end
end, end,
group = vim.api.nvim_create_augroup('ACanola', { clear = true }), group = vim.api.nvim_create_augroup(
'ACanola',
{ clear = true }
),
}) })
end, end,
event = 'DeferredUIEnter', event = 'DeferredUIEnter',
@ -308,16 +311,22 @@ return {
end, end,
}) })
vim.api.nvim_create_autocmd('CursorHold', { vim.api.nvim_create_autocmd('CursorHold', {
group = vim.api.nvim_create_augroup('APreviewSynctex', { clear = true }), group = vim.api.nvim_create_augroup(
'APreviewSynctex',
{ clear = true }
),
pattern = '*.tex', pattern = '*.tex',
callback = function() callback = function()
local pdf = synctex_pdf[vim.api.nvim_get_current_buf()] local pdf = synctex_pdf[vim.api.nvim_get_current_buf()]
if pdf then if pdf then
vim.fn.jobstart({ vim.fn.jobstart({
'sioyek', 'sioyek',
'--instance-name', 'preview', '--instance-name',
'--forward-search-file', vim.fn.expand('%:p'), 'preview',
'--forward-search-line', tostring(vim.fn.line('.')), '--forward-search-file',
vim.fn.expand('%:p'),
'--forward-search-line',
tostring(vim.fn.line('.')),
pdf, pdf,
}) })
end end