]> gitweb.fluxo.info Git - rhatto/dotfiles/vim.git/commitdiff
Fix: try preservim/vim-markdown again
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 30 Jul 2024 02:58:19 +0000 (23:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 30 Jul 2024 02:58:19 +0000 (23:58 -0300)
.gitmodules
vim.dot.link/filetype.vim
vim.dot.link/ftplugin/markdown.vim
vim.dot.link/pack/masukomi/opt/vim-markdown-folding [moved from vim.dot.link/pack/masukomi/start/vim-markdown-folding with 100% similarity]
vim.dot.link/pack/preservim/start/vim-markdown [moved from vim.dot.link/pack/preservim/opt/vim-markdown with 100% similarity]

index 165af6979b47212e0ceda73ddd759a095cae5592..e7d38b99c6dd2cd1a0ea6712cfc47c310702e4b5 100644 (file)
   # 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
index d11c87bc1d69fddf2a4d88d255253db443ebf0b5..68c9bba1aaacab10b75f9dd89ac254dd463ff11a 100644 (file)
@@ -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
 " }}}
 
index 366d9f2a49659d8e11ffddc001cb4a56fb948dda..b40908eb80af9adde757802d5cdea0662425e144 100644 (file)
@@ -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 {{{
 " 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
 " }}}