better vimtex forward search with zathura

This commit is contained in:
2025-05-14 16:49:27 +02:00
parent 0f8973d074
commit 5c7fae4de6
3 changed files with 53 additions and 14 deletions

View File

@@ -41,7 +41,15 @@ require('pckr').add{
'lukas-reineke/indent-blankline.nvim';
'JoosepAlviste/nvim-ts-context-commentstring';
'numToStr/Comment.nvim';
'lervag/vimtex';
{
'lervag/vimtex';
config = function()
vim.cmd([[
let g:vimtex_view_method = 'zathura_simple'
let g:vimtex_view_automatic = 0
]])
end,
};
{
'neovim/nvim-lspconfig',
requires = {

View File

@@ -8,6 +8,7 @@ local M = {}
-- Set leader key to space
vim.g.mapleader = " "
vim.g.maplocalleader = ";"
-- Set Explorer keybind to leader-"e"
vim.keymap.set("n","<leader>e", vim.cmd.Ex)