diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-07-11 05:12:18 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-07-11 05:12:18 -0300 |
| commit | 1fd0af14d592d612c2aaab7717c04c8806ba3daa (patch) | |
| tree | 46aa59ff785305fcc05209091aecf64ca89e05fb /lua/plugins/treesitter.lua | |
| parent | fb448577edebb1b093e6cc097c201151385986f8 (diff) | |
| download | nvim-conf-1fd0af14d592d612c2aaab7717c04c8806ba3daa.tar.gz nvim-conf-1fd0af14d592d612c2aaab7717c04c8806ba3daa.zip | |
Feat: Todo actulizado
Diffstat (limited to 'lua/plugins/treesitter.lua')
| -rw-r--r-- | lua/plugins/treesitter.lua | 40 |
1 files changed, 39 insertions, 1 deletions
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, }, |