modified architecture
This commit is contained in:
34
lua/plugins/nvim_treesitter.lua
Normal file
34
lua/plugins/nvim_treesitter.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
local config = require("config").plugins.nvim_treesitter
|
||||
local options = config.options
|
||||
local mappings = config.mappings
|
||||
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
|
||||
build = ":TSUpdate",
|
||||
|
||||
config = function()
|
||||
local nvim_treesitter_configs = require("nvim-treesitter.configs")
|
||||
|
||||
nvim_treesitter_configs.setup({
|
||||
ensure_installed = options.parsers,
|
||||
|
||||
highlight = {
|
||||
enable = true
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true
|
||||
},
|
||||
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = mappings.start_selection,
|
||||
node_incremental = mappings.increment_selection,
|
||||
node_decremental = mappings.decrement_selection
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user