Skip to content

Commit

Permalink
Updated treesitter config
Browse files Browse the repository at this point in the history
  • Loading branch information
elC0mpa committed Feb 2, 2024
1 parent 232bb16 commit f25d78a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
6 changes: 3 additions & 3 deletions lazy-lock.json
Original file line number Diff line number Diff line change
@@ -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" },
Expand All @@ -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" },
Expand Down
44 changes: 21 additions & 23 deletions lua/plugins_config/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
},
}
}

0 comments on commit f25d78a

Please sign in to comment.