-- Nvim Treesitter configurations and abstraction layer. -- https://github.com/nvim-treesitter/nvim-treesitter return { "nvim-treesitter", lazy = false, after = function() require("nvim-treesitter.configs").setup({ -- Disable imperative treesitter options that would attempt to fetch -- grammars into the read-only Nix store. auto_install = false, sync_install = false, ensure_installed = {}, -- Indentation module for Treesitter indent = { enable = true, disable = {}, }, -- Highlight module for Treesitter highlight = { enable = true, disable = {}, -- Setting this to true will run `:h syntax` and tree-sitter at the same time. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Using this option may slow down your editor, and you may see some duplicate highlights. -- Instead of true it can also be a list of languages additional_vim_regex_highlighting = false, }, -- Indentation module for Treesitter incremental_selection = { enable = true, disable = {}, keymaps = { init_selection = false, node_incremental = false, scope_incremental = false, node_decremental = false, }, }, }) end, }