1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2026-04-26 20:21:35 +00:00

[neovim] replace nvim-treesitter by tree-sitter-manager

This commit is contained in:
2026-04-19 18:03:14 +02:00
parent 08a9870b3d
commit 3b2986e24c
3 changed files with 19 additions and 10 deletions
+17 -1
View File
@@ -73,7 +73,23 @@ require("lazy").setup({
},
event = "VeryLazy",
},
{ "nvim-treesitter/nvim-treesitter", branch = "main", event = "BufReadPost" },
{
"romus204/tree-sitter-manager.nvim",
dependencies = {}, -- tree-sitter CLI must be installed system-wide
config = function()
require("tree-sitter-manager").setup({
-- Default Options
-- ensure_installed = {}, -- list of parsers to install at the start of a neovim session
-- border = nil, -- border style for the window (e.g. "rounded", "single"), if nil, use the default border style defined by 'vim.o.winborder'. See :h 'winborder' for more info.
-- auto_install = false, -- if enabled, install missing parsers when editing a new file
-- highlight = true, -- treesitter highlighting is enabled by default
-- languages = {}, -- override or add new parser sources
-- parser_dir = vim.fn.stdpath("data") .. "/site/parser",
-- query_dir = vim.fn.stdpath("data") .. "/site/queries",
})
end,
},
{
"folke/snacks.nvim",
priority = 1000,
+1 -1
View File
@@ -42,7 +42,7 @@ require("snacks").setup({
indent = 2,
},
{ icon = "", desc = "Mason", action = ":Mason", key = "m", indent = 2 },
{ icon = "", desc = "Tree-sitter", action = ":TSUpdate", key = "t", indent = 2, padding = 2 },
-- { icon = "", desc = "Tree-sitter", action = ":TSUpdate", key = "t", indent = 2, padding = 2 },
{ section = "startup" },
},
+1 -8
View File
@@ -1,4 +1,4 @@
require("nvim-treesitter.config").setup({
require("tree-sitter-manager").setup({
ensure_installed = {
"bash",
"comment",
@@ -31,11 +31,4 @@ require("nvim-treesitter.config").setup({
enable = true,
disable = { "css" },
},
autopairs = {
enable = true,
},
indent = {
enable = true,
disable = { "python", "css" },
},
})