From 8a7cc787dd8034eb0b3eda1ed78c71ac25e3dbf1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 29 Jul 2024 23:58:19 -0300 Subject: Fix: try preservim/vim-markdown again --- .gitmodules | 4 ++-- vim.dot.link/filetype.vim | 6 ++++-- vim.dot.link/ftplugin/markdown.vim | 18 +++++++++--------- vim.dot.link/pack/masukomi/opt/vim-markdown-folding | 1 + vim.dot.link/pack/masukomi/start/vim-markdown-folding | 1 - vim.dot.link/pack/preservim/opt/vim-markdown | 1 - vim.dot.link/pack/preservim/start/vim-markdown | 1 + 7 files changed, 17 insertions(+), 15 deletions(-) create mode 160000 vim.dot.link/pack/masukomi/opt/vim-markdown-folding delete mode 160000 vim.dot.link/pack/masukomi/start/vim-markdown-folding delete mode 160000 vim.dot.link/pack/preservim/opt/vim-markdown create mode 160000 vim.dot.link/pack/preservim/start/vim-markdown diff --git a/.gitmodules b/.gitmodules index 165af69..e7d38b9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -66,11 +66,11 @@ # While this other repo fixes https://github.com/masukomi/vim-markdown-folding/pull/43 url = https://github.com/rafkaplon/vim-markdown-folding [submodule "vim.dot.link/pack/masukomi/start/vim-markdown-folding"] - path = vim.dot.link/pack/masukomi/start/vim-markdown-folding + path = vim.dot.link/pack/masukomi/opt/vim-markdown-folding url = https://github.com/masukomi/vim-markdown-folding [submodule "vim.dot.link/pack/vitalk/start/vim-simple-todo"] path = vim.dot.link/pack/vitalk/start/vim-simple-todo url = https://github.com/vitalk/vim-simple-todo [submodule "vim.dot.link/pack/preservim/start/vim-markdown"] - path = vim.dot.link/pack/preservim/opt/vim-markdown + path = vim.dot.link/pack/preservim/start/vim-markdown url = https://github.com/preservim/vim-markdown diff --git a/vim.dot.link/filetype.vim b/vim.dot.link/filetype.vim index d11c87b..68c9bba 100644 --- a/vim.dot.link/filetype.vim +++ b/vim.dot.link/filetype.vim @@ -54,8 +54,10 @@ augroup END " won't be correctly applied in some Markdown files loaded in new windows. augroup filetype_markdown autocmd! - autocmd BufRead,BufNewFile,BufEnter *.md set foldexpr=NestedMarkdownFolds() - autocmd BufRead,BufNewFile,BufEnter *.md set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:> + "autocmd BufRead,BufNewFile,BufEnter *.md set foldexpr=NestedMarkdownFolds() + "autocmd BufRead,BufNewFile,BufEnter *.md set autoindent smartindent + "autocmd BufRead,BufNewFile,BufEnter *.md set formatoptions=tcroqn2 comments=n:> + autocmd BufRead,BufNewFile,BufEnter *.md set tabstop=2 softtabstop=2 shiftwidth=2 expandtab augroup END " }}} diff --git a/vim.dot.link/ftplugin/markdown.vim b/vim.dot.link/ftplugin/markdown.vim index 366d9f2..b40908e 100644 --- a/vim.dot.link/ftplugin/markdown.vim +++ b/vim.dot.link/ftplugin/markdown.vim @@ -9,8 +9,9 @@ " These settings are configured directly on filetype.vim instead. " Basic {{{ -"set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 -"set expandtab formatoptions=tcroqn2 comments=n:> +"set autoindent smartindent +"set tabstop=2 softtabstop=2 shiftwidth=2 expandtab +"set formatoptions=tcroqn2 comments=n:> " }}} " Markdown configuration without vim-markdown plugin {{{ @@ -18,16 +19,15 @@ " Include folding setup: " https://github.com/masukomi/vim-markdown-folding " -" Alternative folding method: +" This is an alternative to the following method: " https://codereview.stackexchange.com/questions/202620/vim-plugin-for-folding-markdown-lists "set foldexpr=NestedMarkdownFolds() " }}} " Markdown configuration with vim-markdown plugin {{{ -"set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:> -"let g:vim_markdown_new_list_item_indent = 2 -"let g:vim_markdown_folding_style_pythonic = 1 -"let g:vim_markdown_folding_level = 1 -"let g:vim_markdown_auto_insert_bullets = 0 -"let g:vim_markdown_new_list_item_indent = 0 +let g:vim_markdown_new_list_item_indent = 2 +let g:vim_markdown_folding_style_pythonic = 1 +let g:vim_markdown_folding_level = 1 +let g:vim_markdown_auto_insert_bullets = 0 +let g:vim_markdown_new_list_item_indent = 0 " }}} diff --git a/vim.dot.link/pack/masukomi/opt/vim-markdown-folding b/vim.dot.link/pack/masukomi/opt/vim-markdown-folding new file mode 160000 index 0000000..0592d3e --- /dev/null +++ b/vim.dot.link/pack/masukomi/opt/vim-markdown-folding @@ -0,0 +1 @@ +Subproject commit 0592d3efcb9b287fff265aa542872d95478a7536 diff --git a/vim.dot.link/pack/masukomi/start/vim-markdown-folding b/vim.dot.link/pack/masukomi/start/vim-markdown-folding deleted file mode 160000 index 0592d3e..0000000 --- a/vim.dot.link/pack/masukomi/start/vim-markdown-folding +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0592d3efcb9b287fff265aa542872d95478a7536 diff --git a/vim.dot.link/pack/preservim/opt/vim-markdown b/vim.dot.link/pack/preservim/opt/vim-markdown deleted file mode 160000 index a657e69..0000000 --- a/vim.dot.link/pack/preservim/opt/vim-markdown +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a657e697376909c41475a686eeef7fc7a4972d94 diff --git a/vim.dot.link/pack/preservim/start/vim-markdown b/vim.dot.link/pack/preservim/start/vim-markdown new file mode 160000 index 0000000..a657e69 --- /dev/null +++ b/vim.dot.link/pack/preservim/start/vim-markdown @@ -0,0 +1 @@ +Subproject commit a657e697376909c41475a686eeef7fc7a4972d94 -- cgit v1.2.3