nvim/lua/plugins/treesitter.lua
Maurice Grönwoldt 18da9560c6
Initial Commit
2025-07-30 16:05:16 +02:00

25 lines
693 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "lua", "markdown_inline" },
auto_install = false,
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<Enter>", -- set to `false` to disable one of the mappings
node_incremental = "<Enter>",
scope_incremental = false,
node_decremental = "<Backspace>",
},
},
})
end
}