diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 9777cec..ade402d 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -1,8 +1,11 @@ set spell spellfile="~/.config/nvim/spell/wordlist" let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'fortran'] -"set conceallevel=2 -"let g:vim_markdown_math = 1 -"let g:tex_conceal = "abdmg" +set conceallevel=2 +let g:vim_markdown_math = 1 +let g:tex_conceal = "abdmg" +let g:tex_superscripts= "[0-9a-zA-W.,:;+-<>/()=]" +let g:tex_subscripts= "[0-9aehijklmnoprstuvx,+-/().]" +let g:tex_conceal_frac=1 hi clear Conceal map : w % AsyncRun md2pdf "%" map : w % AsyncRun md2beamer "%" diff --git a/init.lua b/init.lua index 67cc8f0..bf2a966 100644 --- a/init.lua +++ b/init.lua @@ -258,15 +258,15 @@ require("lazy").setup({ repl_open_cmd = "horizontal bot 20 split" end, }, - "vigoux/ltex-ls.nvim", - "tpope/vim-markdown", + "ixru/nvim-markdown", + "KeitaNakamura/tex-conceal.vim", "christoomey/vim-tmux-navigator", - -- NOTE: Plugins can specify dependencies. - -- - -- The dependencies are proper plugin specifications as well - anything - -- you do for a plugin at the top level, you can do for a dependency. - -- - -- Use the `dependencies` key to specify the dependencies of a particular plugin + ---- NOTE: Plugins can specify dependencies. + ---- + ---- The dependencies are proper plugin specifications as well - anything + ---- you do for a plugin at the top level, you can do for a dependency. + ---- + ---- Use the `dependencies` key to specify the dependencies of a particular plugin { -- Fuzzy Finder (files, lsp, etc) "nvim-telescope/telescope.nvim",