mirror of https://github.com/folke/lazy.nvim.git
perf(util): don't try to load nvim-treesitter when markdown parser is builtin
This commit is contained in:
parent
59335c5b9d
commit
8b73492249
|
@ -315,7 +315,12 @@ function M.notify(msg, opts)
|
|||
local lang = opts.lang or "markdown"
|
||||
vim.notify(msg, opts.level or vim.log.levels.INFO, {
|
||||
on_open = function(win)
|
||||
pcall(require, "nvim-treesitter")
|
||||
local ok = pcall(function()
|
||||
vim.treesitter.language.add("markdown")
|
||||
end)
|
||||
if not ok then
|
||||
pcall(require, "nvim-treesitter")
|
||||
end
|
||||
vim.wo[win].conceallevel = 3
|
||||
vim.wo[win].concealcursor = ""
|
||||
vim.wo[win].spell = false
|
||||
|
|
Loading…
Reference in New Issue