From 1fd0af14d592d612c2aaab7717c04c8806ba3daa Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Thu, 11 Jul 2024 05:12:18 -0300 Subject: Feat: Todo actulizado --- lua/plugins/treesitter.lua | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'lua/plugins/treesitter.lua') diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 9bbcde2..363f081 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -2,11 +2,35 @@ return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", dependencies = { + 'RRethy/nvim-treesitter-endwise', "nvim-treesitter/nvim-treesitter-textobjects", + 'nvim-treesitter/playground', }, - event = "VeryLazy", + event = { 'BufReadPre', 'BufNew', 'BufNewFile' }, main = "nvim-treesitter.configs", + cmd = { + 'TSBufDisable', + 'TSBufEnable', + 'TSBufToggle', + 'TSConfigInfo', + 'TSDisable', + 'TSEditQuery', + 'TSEditQueryUserAfter', + 'TSEnable', + 'TSInstall', + 'TSInstallFromGrammar', + 'TSInstallInfo', + 'TSInstallSync', + 'TSModuleInfo', + 'TSToggle', + 'TSUninstall', + 'TSUpdate', + 'TSUpdateSync', + 'TSPlaygroundToggle', + }, opts = { + endwise = { enable = true }, + auto_install = true, ensure_installed = { "bash", "blade", @@ -23,6 +47,7 @@ return { "nix", "org", "php", + "php_only", "phpdoc", "query", "rust", @@ -37,11 +62,24 @@ return { "python", "dockerfile", "cpp", + "elixir", + "erlang", }, highlight = { enable = true, additional_vim_regex_highlighting = { "org" }, }, + playground = { + enable = true, + disable = {}, + updatetime = 25, -- Tiempo de actualización en milisegundos para la consulta del árbol. + persist_queries = false, -- Si se debe persistir las consultas entre sesiones. + }, + query_linter = { + enable = true, + use_virtual_text = true, + lint_events = {"BufWrite", "CursorHold"}, + }, indent = { enable = true, }, -- cgit v1.2.3