1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-27 21:47:46 +01:00

nvim: autostart knap only for tex, increase preview delay

This commit is contained in:
tiyn 2024-01-03 01:00:29 +01:00
parent c53e936f73
commit 368e4c55a6
3 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ vim.api.nvim_create_autocmd({ 'BufEnter' },
{
callback = function()
vim.o.foldenable = false
require("knap").toggle_autopreviewing()
end
})

View File

@ -1,4 +1,4 @@
vim.api.nvim_create_autocmd({ 'BufEnter' },
vim.api.nvim_create_autocmd({ 'VimEnter' },
{
callback = function()
require("knap").toggle_autopreviewing()

View File

@ -5,7 +5,7 @@ return {
ft = { 'tex' },
config = function()
vim.g.knap_settings = {
delay = 1000,
delay = 10000,
-- tex
texoutputext = "pdf",
textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",