Updated Yazi: version, hop plugin, glow preview

This commit is contained in:
Thomas Naderer
2025-05-30 23:30:44 +02:00
parent b3cb8b7fdf
commit 85ef8dca72
11 changed files with 324 additions and 87 deletions

View File

@@ -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