Skip to content

Commit 5a74885

Browse files
Added vimtex
1 parent 04fb910 commit 5a74885

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

init.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,15 @@ require('lazy').setup({
808808
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' }),
809809
},
810810
{ 'tpope/vim-fugitive' },
811+
{
812+
'lervag/vimtex',
813+
-- lazy = false,
814+
init = function()
815+
-- VimTeX configuration goes here, e.g.
816+
vim.g.vimtex_view_general_viewer = 'okular'
817+
vim.g.vimtex_compiler_method = 'latexmk'
818+
end,
819+
},
811820
{ -- Highlight, edit, and navigate code
812821
'nvim-treesitter/nvim-treesitter',
813822
build = ':TSUpdate',
@@ -817,6 +826,7 @@ require('lazy').setup({
817826
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
818827
-- Autoinstall languages that are not installed
819828
auto_install = true,
829+
ignore_install = { 'latex' },
820830
highlight = {
821831
enable = true,
822832
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.

0 commit comments

Comments
 (0)