Skip to content

Commit

Permalink
feat: add render-markdown.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Sep 5, 2024
1 parent 332325f commit 4b44881
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
8 changes: 7 additions & 1 deletion root/.config/nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions root/.config/nvim/lua/plugins/vimplug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions root/.vim/vimrc.d/plugin_setup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ if v:version >= 800

exe command_def . 'QfGitDiff call open_gitdiff#select("enew", function("open_gitdiff#quickfix#view"), <f-args>)'
command -nargs=+ -complete=customlist,fugitive#LogComplete GitDiff2Paths call open_gitdiff#open_diff_by_path(<f-args>)

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'
Expand Down
5 changes: 0 additions & 5 deletions root/.vim/vimrc.d/vimplug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down

0 comments on commit 4b44881

Please sign in to comment.