From 5d176f2f0a91a352173ee83163c1bbcd7c972cbd Mon Sep 17 00:00:00 2001 From: afonso Date: Mon, 7 Oct 2024 20:16:38 +0100 Subject: [PATCH] [nvim] fix pdf reader in mac/linux --- .config/nvim/lua/plugins/lsp.lua | 8 ++++++-- .config/nvim/lua/plugins/treesitter.lua | 2 +- .config/nvim/lua/plugins/ui.lua | 12 ++++++------ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 521eddf..d7bc7eb 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -242,9 +242,13 @@ return { { "lervag/vimtex", - event = "VeryLazy", + filetypes = {"tex"}, config = function() - vim.g.vimtex_view_method = 'skim' + if vim.loop.os_uname().sysname == "Darwin" then + vim.g.vimtex_view_method = 'skim' + else + vim.g.vimtex_view_method = 'zathura' + end vim.g.vimtex_compiler_methor = 'pdflatex' end, }, diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index d62faaa..c18f162 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -16,8 +16,8 @@ return { auto_install = true, highlight = { enable = true, + disable = { "latex" }, use_languagetree = true, - additional_vim_regex_highlighting = { "org" }, }, indent = { enable = true, diff --git a/.config/nvim/lua/plugins/ui.lua b/.config/nvim/lua/plugins/ui.lua index 004de39..02b5d59 100644 --- a/.config/nvim/lua/plugins/ui.lua +++ b/.config/nvim/lua/plugins/ui.lua @@ -8,12 +8,6 @@ return { vim.g.tpipeline_statusline = '%=%l:%c' end }, - --Better quick fix - { - 'kevinhwang91/nvim-bqf', - event = "VeryLazy", - ft = 'qf' - }, { "j-hui/fidget.nvim", opts = { @@ -24,6 +18,12 @@ return { } }, }, + --Better quick fix + { + 'kevinhwang91/nvim-bqf', + event = "VeryLazy", + ft = 'qf' + }, { "OXY2DEV/markview.nvim", ft = "markdown",