···1return {
2 -- Highlight, edit, and navigate code
3 "nvim-treesitter/nvim-treesitter",
04 build = ":TSUpdate",
5- main = "nvim-treesitter.configs", -- Sets main module to use for opts
6- -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
7 config = function()
8 require("nvim-treesitter").setup({
9- -- A list of parser names, or "all"
10- ensure_installed = {
11- "vimdoc",
12- "javascript",
13- "typescript",
14- "c",
15- "lua",
16- "rust",
17- "jsdoc",
18- "bash",
19- "svelte",
20- "astro",
21- "vue",
22- "css",
23- "scss",
24- "gdscript",
25- },
26-27- -- Install parsers synchronously (only applied to `ensure_installed`)
28- sync_install = false,
29-30- -- Automatically install missing parsers when entering buffer
31- -- Recommendation: set to false if you don"t have `tree-sitter` CLI installed locally
32- auto_install = true,
33-34- indent = {
35- enable = true,
36- disable = { "gdscript" },
37- },
38-39- highlight = {
40- -- `false` will disable the whole extension
41- enable = true,
42-43- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
44- -- Set this to `true` if you depend on "syntax" being enabled (like for indentation).
45- -- Using this option may slow down your editor, and you may see some duplicate highlights.
46- -- Instead of true it can also be a list of languages
47- additional_vim_regex_highlighting = { "markdown" },
48- },
49 })
5051- -- vim.filetype.add({
52- -- extension = {
53- -- mdx = "mdx",
54- -- },
55- -- })
000000000000005657- -- vim.treesitter.language.register("markdown", "mdx")
00000058 end,
59}