vimtex gaming
This commit is contained in:
1 parent
0cc5e31053
commit
b2289f5624
3 files changed
+8
-16
No files matched your search
@@ -1,15 +0,0 @@
|
||||
local g = vim.api.nvim_create_augroup("preview", {})
|
||||
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
group = g,
|
||||
pattern = "*.tex",
|
||||
callback = function(arg)
|
||||
local dir = arg.file:match(".*/")
|
||||
local args = ""
|
||||
if dir ~= nil then
|
||||
args = "-output-directory='"..dir.."' "
|
||||
end
|
||||
vim.cmd("silent exec \"!pdflatex "..args.."'"..arg.file.."'\"")
|
||||
end
|
||||
})
|
||||
|
||||
@@ -8,6 +8,7 @@ o.showmode = false
|
||||
o.clipboard = "unnamedplus"
|
||||
|
||||
g.mapleader = " "
|
||||
g.maplocalleader = ","
|
||||
vim.cmd("filetype plugin on")
|
||||
vim.cmd("syntax on")
|
||||
|
||||
|
||||
Reference in new issue
Block a user