--[[ File: treesitter.lua Description: Configuration of tree-sitter See: https://github.com/tree-sitter/tree-sitter ]] return { "romus204/tree-sitter-manager.nvim", dependencies = {}, -- tree-sitter CLI must be installed system-wide config = function() require("tree-sitter-manager").setup({ -- Default Options ensure_installed = { "cpp", "cmake", "json", "bash" }, -- list of parsers to install at the start of a neovim session -- border = nil, -- border style for the window (e.g. "rounded", "single"), if nil, use the default border style defined by 'vim.o.winborder'. See :h 'winborder' for more info. auto_install = true, -- if enabled, install missing parsers when editing a new file highlight = true, -- treesitter highlighting is enabled by default -- languages = {}, -- override or add new parser sources -- parser_dir = vim.fn.stdpath("data") .. "/site/parser", -- query_dir = vim.fn.stdpath("data") .. "/site/queries", languages = { norg = { install_info = { url = "https://github.com/nvim-neorg/tree-sitter-norg", use_repo_queries = true } } } }) end }