cI: format
This commit is contained in:
parent
615f4c1868
commit
17ce8599d0
1 changed files with 14 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue