nvim: 處理markdown支援

This commit is contained in:
Yuan Chiu 2025-05-07 08:08:23 +08:00
parent 0e5d344b74
commit 7ed7438fe6
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -1,4 +1,9 @@
return { return {
{ 'plasticboy/vim-markdown',
config = function()
vim.g.vim_markdown_folding_disabled = 1
end,
},
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
cond = function() cond = function()
@ -15,18 +20,23 @@ return {
-- <https://github.com/nvim-treesitter/nvim-treesitter#supported-languages> -- <https://github.com/nvim-treesitter/nvim-treesitter#supported-languages>
ensure_installed = { ensure_installed = {
"regex", "regex",
"bash",
"html",
"javascript",
"json",
"lua", "lua",
"php", "markdown",
"markdown_inline",
"python", "python",
"php",
"go", "go",
"html", "html",
"css", "css",
"javascript"
}, },
highlight = { highlight = {
enable = true, -- 啟用高亮 enable = true, -- 啟用高亮
}, },
indent = { enable = true }, -- indent = { enable = true },
}) })
end, end,
}, },