switched to lazy.nvim and clean up a bit
This commit is contained in:
1 parent
72bf7e727a
commit
11bb713b60
19 files changed
+290
-331
No files matched your search
@@ -1,17 +1,15 @@
|
||||
local u = require 'config.utils'
|
||||
local g = vim.api.nvim_create_augroup("preview", {})
|
||||
|
||||
local g = vim.api.nvim_create_augroup('preview', {})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufWritePost', {
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
group = g,
|
||||
pattern = '*.tex',
|
||||
pattern = "*.tex",
|
||||
callback = function(arg)
|
||||
local dir = arg.file:match('.*/')
|
||||
local args = ''
|
||||
local dir = arg.file:match(".*/")
|
||||
local args = ""
|
||||
if dir ~= nil then
|
||||
args = '-output-directory=\''..dir..'\' '
|
||||
args = "-output-directory='"..dir.."' "
|
||||
end
|
||||
vim.cmd('silent exec "!pdflatex '..args..'\''..arg.file..'\'"')
|
||||
vim.cmd("silent exec \"!pdflatex "..args.."'"..arg.file.."'\"")
|
||||
end
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user