improve tree
This commit is contained in:
@@ -1,33 +1,4 @@
|
||||
local function config()
|
||||
--- Ensure plugin is avaiable
|
||||
local treesitter = require("nvim-treesitter.configs")
|
||||
|
||||
--- Plugin options
|
||||
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)
|
||||
end
|
||||
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user