Updated Yazi: version, hop plugin, glow preview
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = { "c", "lua", "python", "javascript", "markdown", "html", "css"}, -- Add languages you use
|
||||
sync_install = false, -- Install parsers asynchronously
|
||||
auto_install = true, -- Automatically install missing parsers
|
||||
ensure_installed = { "c", "lua", "python", "javascript", "markdown", "markdown_inline", "html", "css" },
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true, -- Enable syntax highlighting
|
||||
additional_vim_regex_highlighting = false, -- Avoid slow fallback regex highlighting
|
||||
enable = true,
|
||||
disable = function(lang, buf)
|
||||
local filename = vim.api.nvim_buf_get_name(buf)
|
||||
if lang == "latex" or filename:match("%.bib$") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end,
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true -- Enable indentation support
|
||||
enable = true,
|
||||
disable = { "tex", "bib", "markdown" }
|
||||
},
|
||||
|
||||
incremental_selection = {
|
||||
@@ -23,3 +30,7 @@ require'nvim-treesitter.configs'.setup {
|
||||
},
|
||||
}
|
||||
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldlevel = 2
|
||||
vim.opt.foldenable = true
|
||||
|
||||
Reference in New Issue
Block a user