added latex config
This commit is contained in:
parent
0f9e9d8725
commit
7ad1e216a6
1 changed files with 14 additions and 0 deletions
14
.config/nvim/lua/plugins/vimtex.lua
Normal file
14
.config/nvim/lua/plugins/vimtex.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"lervag/vimtex",
|
||||
lazy = false,
|
||||
config = function()
|
||||
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
|
||||
vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"
|
||||
vim.g.vimtex_viewer_method = "zathura"
|
||||
vim.g.vimtex_quickfix_open_on_warning = 0
|
||||
vim.g.vimtex_compiler_silent = 1
|
||||
end,
|
||||
keys = {
|
||||
{ "<localLeader>l", "", desc = "+vimtex" },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue