markdown: try to improve markdown folding

- Makes rid of treesitter for markdown folding and use the build-in
  vim-markdown plugin features.
- Removes configuration (and uninstall) marksman.

But, still, as the YAML frontmatter isn't well recognized, the folding
method folds it's last line.

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2023-09-15 10:28:38 +02:00
parent 47fab5a70d
commit 35320a2a84
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 10 additions and 9 deletions

View File

@ -2,6 +2,7 @@
-- Use treesitter for folding -- Use treesitter for folding
-- Disable the color column -- Disable the color column
vim.opt.foldmethod="expr" -- vim.opt.foldmethod="expr"
vim.opt.foldexpr="nvim_treesitter#foldexpr()" -- vim.opt.foldexpr="nvim_treesitter#foldexpr()"
vim.opt.foldlevel=0 vim.g.markdown_folding=1
-- vim.opt.foldlevel=1

View File

@ -487,12 +487,12 @@ local servers = {
-- rust_analyzer = {}, -- rust_analyzer = {},
-- tsserver = {}, -- tsserver = {},
marksman = { -- marksman = {
ft = { -- ft = {
'markdown', -- 'markdown',
'pandoc' -- 'pandoc'
} -- }
}, -- },
lua_ls = { lua_ls = {
Lua = { Lua = {