Update local conceallevel setup.

This commit is contained in:
Mayrixon 2023-07-18 16:31:54 +01:00
parent 2409cacf8c
commit 640c58e275

View file

@ -28,7 +28,14 @@ return {
version = "*",
lazy = false, -- lazy-loading will disable inverse search
config = function()
vim.opt.conceallevel = 2
vim.api.nvim_create_autocmd({ "FileType" }, {
group = vim.api.nvim_create_augroup("lazyvim_vimtex_conceal", { clear = true }),
pattern = { "bib", "tex" },
callback = function()
vim.wo.conceallevel = 2
end,
})
vim.g.vimtex_complete_enabled = 0 -- use texlab for completion
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"