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:
@@ -73,7 +73,23 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
event = "VeryLazy",
|
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",
|
"folke/snacks.nvim",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ require("snacks").setup({
|
|||||||
indent = 2,
|
indent = 2,
|
||||||
},
|
},
|
||||||
{ icon = "", desc = "Mason", action = ":Mason", key = "m", 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" },
|
{ section = "startup" },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
require("nvim-treesitter.config").setup({
|
require("tree-sitter-manager").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"comment",
|
"comment",
|
||||||
@@ -31,11 +31,4 @@ require("nvim-treesitter.config").setup({
|
|||||||
enable = true,
|
enable = true,
|
||||||
disable = { "css" },
|
disable = { "css" },
|
||||||
},
|
},
|
||||||
autopairs = {
|
|
||||||
enable = true,
|
|
||||||
},
|
|
||||||
indent = {
|
|
||||||
enable = true,
|
|
||||||
disable = { "python", "css" },
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user