Skip to content

Commit

Permalink
Fixed nvim-treesitter config
Browse files Browse the repository at this point in the history
  • Loading branch information
elC0mpa committed Jan 31, 2024
1 parent a66d42c commit 232bb16
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
1 change: 0 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ require('plugins')
require('maps')

local opt = vim.o
local global = vim.g

opt.relativenumber = true
opt.number = true
Expand Down
43 changes: 23 additions & 20 deletions lua/plugins_config/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,27 @@ return {
dependencies = {
'nvim-treesitter/nvim-treesitter-refactor'
},
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",
},
},
},
},
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
}

0 comments on commit 232bb16

Please sign in to comment.