29 lines
480 B
Lua
29 lines
480 B
Lua
--- Ensure plugin is avaiable
|
|
local ok, treesitter = pcall(require, "nvim-treesitter.configs")
|
|
if not ok then
|
|
return
|
|
end
|
|
|
|
--- Plugin options
|
|
local opts = {
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
autotag = {
|
|
enable = true,
|
|
},
|
|
auto_install = true,
|
|
incremental_selection = {
|
|
enable = true,
|
|
keymaps = {
|
|
init_selection = "<leader>ss",
|
|
node_incremental = false,
|
|
scope_incremental = false,
|
|
node_decremental = false,
|
|
},
|
|
},
|
|
}
|
|
|
|
--- Load plugin
|
|
treesitter.setup(opts)
|