From 7bb12e4b70318b510a775eafd5868f1a3b20cc9c Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 15 Nov 2022 01:02:45 +0800 Subject: [PATCH] chore: relax vimtex install condition --- README.md | 4 +--- core/plugins.vim | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ff5eee4..2dc13da 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ and how to set up on different platforms (Linux, macOS, and Windows). + Code editing using true nvim inside browser via [firenvim](https://github.com/glacambre/firenvim). + Beautiful colorscheme via [sainnhe/gruvbox-material](https://github.com/sainnhe/gruvbox-material) and other colorschemes. + Markdown writing and previewing via [vim-markdown](https://github.com/preservim/vim-markdown) and [markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim). -+ LaTeX editing and previewing via [vimtex](https://github.com/lervag/vimtex) [1](#f1). ++ LaTeX editing and previewing via [vimtex](https://github.com/lervag/vimtex) + Animated GUI style notification via [nvim-notify](https://github.com/rcarriga/nvim-notify). + Tags navigation via [vista](https://github.com/liuchengxu/vista.vim). + Code formatting via [Neoformat](https://github.com/sbdchd/neoformat). @@ -216,5 +216,3 @@ You may also be interested in my posts on configuring Nvim: + [Config nvim on Linux for Python development](https://jdhao.github.io/2018/12/24/centos_nvim_install_use_guide_en/) + [Nvim config on Windows 10](https://jdhao.github.io/2018/11/15/neovim_configuration_windows/) + [Nvim-qt config on Windows 10](https://jdhao.github.io/2019/01/17/nvim_qt_settings_on_windows/) - -1: Not enabled for Linux, you need to tweak [`lua/plugins.lua`](lua/plugins.lua) and change the condition for installing vimtex.[↩](#a1) diff --git a/core/plugins.vim b/core/plugins.vim index cee072e..5846dba 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -243,7 +243,7 @@ nmap s omap s """"""""""""""""""""""""""""vimtex settings""""""""""""""""""""""""""""" -if ( g:is_win || g:is_mac ) && executable('latex') +if executable('latex') " Hacks for inverse search to work semi-automatically, " see https://jdhao.github.io/2021/02/20/inverse_search_setup_neovim_vimtex/. function! s:write_server_name() abort