Skip to content

Commit

Permalink
fix(vim): mkdx load issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CoelacanthusHex committed Aug 2, 2021
1 parent 3fab5e9 commit 9a2d9c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
10 changes: 7 additions & 3 deletions vim/.vim/conf.d/plugin/mkdx.vim
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
" vim: set sw=4 ts=4 sts=4 et foldmethod=marker spell:
" mkdx Configuration

let g:mkdx#settings = { 'highlight': { 'enable': 1 },
" https://github.com/SidOfc/mkdx/issues/151#issuecomment-846188322
call mkdx#configure({
\ 'highlight': { 'enable': 1 },
\ 'enter': { 'shift': 1 },
\ 'links': { 'external': { 'enable': 1 } },
\ 'toc': { 'text': 'Table of Contents', 'update_on_write': 1 },
\ 'fold': { 'enable': 0 } }
\ 'toc': {
\ 'text': 'Table of Contents',
\ 'update_on_write': 1 },
\ 'fold': { 'enable': 1 } })
" for vim-polyglot users, it loads Plasticboy's markdown
" plugin which unfortunately interferes with mkdx list indentation.
let g:polyglot_disabled = ['markdown']
1 change: 0 additions & 1 deletion vim/.vim/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ augroup filetypedetect
au BufNewFile,BufRead .htaccess.* setf apache
au BufRead pacman.log setf pacmanlog
au BufNewFile,BufRead *.rfc setf rfc
au BufNewFile,BufRead *.md setf markdown
au BufRead grub.cfg setf sh
au BufNewFile,BufRead fcitx_skin.conf,*/fcitx*.{conf,desc}*,*/fcitx/profile setf dosini
au BufNewFile,BufRead mimeapps.list setf desktop
Expand Down
3 changes: 3 additions & 0 deletions vim/.vim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dotfile
dotfile
dotfiles
Binary file added vim/.vim/spell/en.utf-8.add.spl
Binary file not shown.
9 changes: 0 additions & 9 deletions vim/.vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ call plug#begin('~/.vim/plugged')


""""""" Markdown
" markdown syntax highlight, theme
Plug 'plasticboy/vim-markdown', {'for':'markdown'}
" Markdown 语法支持
Plug 'SidOfc/mkdx'

Expand All @@ -272,13 +270,6 @@ call plug#begin('~/.vim/plugged')
Plug 'neovimhaskell/haskell-vim', {'for':'haskell'}


""""""" Pandoc
" Pandoc Support
Plug 'vim-pandoc/vim-pandoc'
" Pandoc Syntax Highlight Support
Plug 'vim-pandoc/vim-pandoc-syntax'


""""""" LaTeX
Plug 'lervag/vimtex'

Expand Down

0 comments on commit 9a2d9c0

Please sign in to comment.