Add vimtex plugin

This commit is contained in:
flyingscorpio@clevo 2022-08-02 10:16:14 +02:00
parent 970ec519ba
commit 69e14f0422
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,9 @@
-- NERDTree -- NERDTree
vim.g.NERDTreeIgnore = { '^__pycache__$', '\\.pyc', '\\~$' }
vim.cmd("let NERDTreeIgnore=['^__pycache__$', '\\.pyc', '\\~$']")
vim.keymap.set('n', '<leader>ne', '<cmd>NERDTree<CR>', { remap = true }) vim.keymap.set('n', '<leader>ne', '<cmd>NERDTree<CR>', { remap = true })
-- VimTex
vim.g.tex_flavor = 'latex'
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_quickfix_autoclose_after_keystrokes = 2
vim.g.vimtex_quickfix_open_on_warning = 0

View file

@ -20,6 +20,9 @@ return require('packer').startup(function(use)
use 'preservim/nerdtree' use 'preservim/nerdtree'
use 'Xuyuanp/nerdtree-git-plugin' -- A NERDTree plugin showing git status use 'Xuyuanp/nerdtree-git-plugin' -- A NERDTree plugin showing git status
-- VimTeX
use 'lervag/vimtex'
-- Automatically set up your configuration after cloning packer.nvim -- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins -- Put this at the end after all plugins
if packer_bootstrap then if packer_bootstrap then