Open isakhammer opened 2 years ago
I also see that this issue is addressed in vimtex conceal plugin in in this issue.
Tried to make vimtex conceal work using this minimalistic vim file.
let mapleader =","
map <Space> <Nop>
map <Space> <leader>
if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim"'))
echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
call plug#begin(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/plugged"'))
Plug 'lervag/vimtex' " Latexmk, zathura and texlive-most(AUR)
call plug#end()
let $MYVIMRC_PERSONAL = "~/workbox/config/nvim/init.vim"
let $CODE_DIR = "~/code/"
nnoremap <leader>se :e $MYVIMRC_PERSONAL<CR>
nnoremap <leader>so :so $MYVIMRC<CR>
""""""""""""""""""""""""""""""
" => Vimtex Plugin
" Check :h vimtex-requirements for more
""""""""""""""""""""""""""""""
let maplocalleader = "\\"
let g:Tex_DefaultTargetFormat='pdf'
let g:vimtex_view_enabled=1
let g:vimtex_view_automatic=1
let g:vimtex_view_method='zathura'
"let g:vimtex_quickfix_mode=0
" main.tex system -> https://github.com/lervag/vimtex/issues/155
au FileType tex let b:main_tex_file='main.tex'
" Clean directory of generated files
"nnoremap <localleader>lc :VimtexStop<cr>:VimtexClean<cr>
"nnoremap <localleader>lca :VimtexStop<cr>:VimtexClean!<cr>
augroup vimtex_config
au!
au User VimtexEventQuit call vimtex#compiler#clean(0)
augroup END
"let g:tex_flavor='latex'
"let g:vimtex_quickfix_mode=0
"" Start client server for backward search from pdf to vim
"if empty(v:servername) && exists('*remote_startserver')
" call remote_startserver('VIM')
"endif
let g:vimtex_syntax_enabled=1
let g:vimtex_syntax_conceal = {
\ 'accents': 1,
\ 'ligatures': 1,
\ 'cites': 1,
\ 'fancy': 1,
\ 'spacing': 1,
\ 'greek': 1,
\ 'math_bounds': 1,
\ 'math_delimiters': 1,
\ 'math_fracs': 1,
\ 'math_super_sub': 1,
\ 'math_symbols': 1,
\ 'sections': 0,
\ 'styles': 1,
\}
However, I still get no conceal vimtex. Remark that I get conceal by using tex-conceal pluing.
Seems like the underlying font is the issue by reading the vimtex-syntax-conceal instructions https://github.com/lervag/vimtex/blob/a4d5e2fdfd6bf2275a1d765a998d5a04d2ad4d1b/doc/vimtex.txt#L4543.
The problem may be fixed by installing JuliaMono on the host terminal server and JuliaMono inside the workbox.
Keep in mind that JuliaMono is installed here https://github.com/isakhammer/workbox/blob/93cdb931fc8b188f5e7fcb33bdfda982104a28d1/Dockerfile#L81. However, I need a way to check if the installation is properly initialized.
https://juliamono.netlify.app/download/