mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
chore: relax vimtex install condition
This commit is contained in:
parent
41da56b823
commit
bb0b0c5e25
@ -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) <sup id="a1">[1](#f1)</sup>.
|
||||
+ 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/)
|
||||
|
||||
<b id="f1">1:</b> Not enabled for Linux, you need to tweak [`lua/plugins.lua`](lua/plugins.lua) and change the condition for installing vimtex.[↩](#a1)
|
||||
|
||||
@ -243,7 +243,7 @@ nmap s <Nop>
|
||||
omap s <Nop>
|
||||
|
||||
""""""""""""""""""""""""""""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
|
||||
|
||||
@ -289,7 +289,7 @@ packer.startup {
|
||||
use { "michaeljsmith/vim-indent-object", event = "VimEnter" }
|
||||
|
||||
-- Only use these plugin on Windows and Mac and when LaTeX is installed
|
||||
if vim.g.is_win or vim.g.is_mac and utils.executable("latex") then
|
||||
if utils.executable("latex") then
|
||||
use { "lervag/vimtex", ft = { "tex" } }
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user