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:
parent
c53e936f73
commit
368e4c55a6
@ -2,7 +2,6 @@ vim.api.nvim_create_autocmd({ 'BufEnter' },
|
||||
{
|
||||
callback = function()
|
||||
vim.o.foldenable = false
|
||||
require("knap").toggle_autopreviewing()
|
||||
end
|
||||
})
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
vim.api.nvim_create_autocmd({ 'BufEnter' },
|
||||
vim.api.nvim_create_autocmd({ 'VimEnter' },
|
||||
{
|
||||
callback = function()
|
||||
require("knap").toggle_autopreviewing()
|
||||
|
@ -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%",
|
||||
|
Loading…
x
Reference in New Issue
Block a user