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"
|
o.clipboard = "unnamedplus"
|
||||||
|
|
||||||
g.mapleader = " "
|
g.mapleader = " "
|
||||||
|
g.maplocalleader = ","
|
||||||
vim.cmd("filetype plugin on")
|
vim.cmd("filetype plugin on")
|
||||||
vim.cmd("syntax on")
|
vim.cmd("syntax on")
|
||||||
|
|
||||||
|
|||||||
+7
-1
@@ -97,5 +97,11 @@ return {
|
|||||||
dependencies = { "nvim-lua/plenary.nvim" }
|
dependencies = { "nvim-lua/plenary.nvim" }
|
||||||
},
|
},
|
||||||
"mfussenegger/nvim-jdtls",
|
"mfussenegger/nvim-jdtls",
|
||||||
"folke/neodev.nvim"
|
"folke/neodev.nvim",
|
||||||
|
{
|
||||||
|
"lervag/vimtex",
|
||||||
|
config = function()
|
||||||
|
vim.g.vimtex_view_method = 'zathura'
|
||||||
|
end
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user