stow_dotfiles/nvim2/.config/nvim/lua/plugins/nvim-treesitter.lua
Matthieu Fortin (Home/Maison) cbece4f200 I made leetle mistake
2025-05-09 06:37:27 -04:00

27 lines
908 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = {
"c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "markdown", "markdown_inline"
},
auto_install = true,
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
}