From f25d78a149ec3010e045c58071f81329aef9970c Mon Sep 17 00:00:00 2001 From: Jose Gabriel Companioni Benitez Date: Fri, 2 Feb 2024 12:06:50 -0500 Subject: [PATCH] Updated treesitter config --- lazy-lock.json | 6 ++--- lua/plugins_config/treesitter.lua | 44 +++++++++++++++---------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index e70df44..2eca2f3 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,7 +1,7 @@ { "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, "bufdelete.nvim": { "branch": "master", "commit": "0b9c0f182b09c51170bb9f252f15de7695e4d507" }, - "bufferline.nvim": { "branch": "main", "commit": "b15c6daf5a64426c69732b31a951f4e438cb6590" }, + "bufferline.nvim": { "branch": "main", "commit": "243893ba9d5d1049dd451a25cab32ec7f8f67bcf" }, "coc.nvim": { "branch": "release", "commit": "7b9e1ef0a1399907c51d23b6080b94a5aba4a654" }, "gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" }, "gruvbox": { "branch": "master", "commit": "f1ecde848f0cdba877acb0c740320568252cc482" }, @@ -12,11 +12,11 @@ "nvim-autopairs": { "branch": "master", "commit": "096d0baecc34f6c5d8a6dd25851e9d5ad338209b" }, "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" }, "nvim-tree.lua": { "branch": "master", "commit": "f39f7b6fcd3865ac2146de4cb4045286308f2935" }, - "nvim-treesitter": { "branch": "master", "commit": "364b86ec8ea88e4a77ba676b93fb10829d6a9cb3" }, + "nvim-treesitter": { "branch": "master", "commit": "e7ea07e42c478cb466cf96124693b447add84011" }, "nvim-treesitter-refactor": { "branch": "master", "commit": "65ad2eca822dfaec2a3603119ec3cc8826a7859e" }, "nvim-web-devicons": { "branch": "master", "commit": "aaec87dbdaa776bfa0a13c8694bec9bcb7454719" }, "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" }, - "telescope.nvim": { "branch": "master", "commit": "e54fbf4ab2b64640b639b75c006c23b4bc51c86f" }, + "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, "todo-comments.nvim": { "branch": "main", "commit": "833d8dd8b07eeda37a09e99460f72a02616935cb" }, "toggleterm.nvim": { "branch": "main", "commit": "b49df5cdce67a8964d1b027dae94bde212092b51" }, "vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" }, diff --git a/lua/plugins_config/treesitter.lua b/lua/plugins_config/treesitter.lua index ea8f724..99d8eaa 100644 --- a/lua/plugins_config/treesitter.lua +++ b/lua/plugins_config/treesitter.lua @@ -5,27 +5,25 @@ return { dependencies = { 'nvim-treesitter/nvim-treesitter-refactor' }, - config = function() - require('nvim-treesitter.configs').setup{ - ensure_installed = { "html", "css", "scss", "vue", "javascript", "typescript", "tsx", "svelte", "json" }, - highlight = { - enable = true, - use_languagetree = true, - }, - refactor = { - highlight_definitions = { - enable = true, - clear_on_cursor_move = true - }, - highlight_current_scope = { enable = true }, - smart_rename = { - enable = true, - keymaps = { - smart_rename = "tr", - }, - }, - }, - - } - end + main = 'nvim-treesitter.configs', + opts = { + ensure_installed = { "html", "css", "scss", "vue", "javascript", "typescript", "tsx", "svelte", "json" }, + highlight = { + enable = true, + use_languagetree = true, + }, + refactor = { + highlight_definitions = { + enable = true, + clear_on_cursor_move = true + }, + highlight_current_scope = { enable = true }, + smart_rename = { + enable = true, + keymaps = { + smart_rename = "tr", + }, + }, + }, + } }