diff --git a/root/.config/nvim/lua/plugins/init.lua b/root/.config/nvim/lua/plugins/init.lua index 592041f..d0b74d0 100644 --- a/root/.config/nvim/lua/plugins/init.lua +++ b/root/.config/nvim/lua/plugins/init.lua @@ -239,7 +239,13 @@ return { "ray-x/guihua.lua", build = "cd lua/fzy && make", }, - + { + 'MeanderingProgrammer/render-markdown.nvim', + opts = {}, + -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite + -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins + dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons + }, -- { -- "amitds1997/remote-nvim.nvim", -- version = "*", -- Pin to GitHub releases diff --git a/root/.config/nvim/lua/plugins/vimplug.lua b/root/.config/nvim/lua/plugins/vimplug.lua index e6671d7..2796f38 100644 --- a/root/.config/nvim/lua/plugins/vimplug.lua +++ b/root/.config/nvim/lua/plugins/vimplug.lua @@ -125,6 +125,7 @@ local M = { { "jupyter-vim/jupyter-vim", cmd = { "JupyterConnect" } }, "goerz/jupytext.vim", { "jpalardy/vim-slime", ft = { "python", "ocaml" } }, + "jiangyinzuo/vim-markdown", { "whonore/Coqtail", ft = "coq" }, { dir = "~/.vim/pack/my_plugins/start/project.vim", diff --git a/root/.vim/vimrc.d/plugin_setup.vim b/root/.vim/vimrc.d/plugin_setup.vim index 94f769f..1037dea 100644 --- a/root/.vim/vimrc.d/plugin_setup.vim +++ b/root/.vim/vimrc.d/plugin_setup.vim @@ -129,6 +129,15 @@ if v:version >= 800 exe command_def . 'QfGitDiff call open_gitdiff#select("enew", function("open_gitdiff#quickfix#view"), )' command -nargs=+ -complete=customlist,fugitive#LogComplete GitDiff2Paths call open_gitdiff#open_diff_by_path() + + let g:vim_markdown_no_default_key_mappings = 1 + let g:vim_markdown_folding_disabled = 1 + let g:vim_markdown_toc_autofit = 1 + let g:vim_markdown_conceal_code_blocks = 0 + let g:vim_markdown_math = 1 + if has('nvim') + let g:vim_markdown_conceal = 0 + endif endif let g:caser_prefix = 'gs' diff --git a/root/.vim/vimrc.d/vimplug.vim b/root/.vim/vimrc.d/vimplug.vim index ebc8d20..6cf0b17 100644 --- a/root/.vim/vimrc.d/vimplug.vim +++ b/root/.vim/vimrc.d/vimplug.vim @@ -170,11 +170,6 @@ if v:version >= 800 " See: https://github.com/preservim/vim-markdown/pull/633 Plug 'jiangyinzuo/vim-markdown', { 'for': 'markdown' } - let g:vim_markdown_no_default_key_mappings = 1 - let g:vim_markdown_folding_disabled = 1 - let g:vim_markdown_toc_autofit = 1 - let g:vim_markdown_conceal_code_blocks = 0 - let g:vim_markdown_math = 1 " 直接vim paper.tex打开文件时,需要手动:e 重新打开一次,才能加载vimtex的syntax Plug 'lervag/vimtex', {'for': 'tex'}