]> git.r.bdr.sh - rbdr/dotfiles/blame - config/nvim/lua/treesitter_config.lua
Add orgmode
[rbdr/dotfiles] / config / nvim / lua / treesitter_config.lua
CommitLineData
3c6ddc92
RBR
1require'nvim-treesitter.configs'.setup {
2 -- A list of parser names, or "all" (the five listed parsers should always be installed)
3 ensure_installed = {
442118e6 4 'api_notation',
3c6ddc92
RBR
5 'bash',
6 'css',
7 'dart',
8 'diff',
9 'dockerfile',
10 'gitcommit',
11 'graphql',
12 'html',
13 'htmldjango',
14 'javascript',
15 'jsdoc',
16 'json',
17 'kotlin',
18 'lua',
19 'make',
20 'markdown',
916478eb 21 'org',
3c6ddc92
RBR
22 'python',
23 'ruby',
24 'rust',
25 'sql',
26 'svelte',
27 'swift',
28 'toml',
29 'tsx',
30 'typescript',
31 'yaml'
32 },
33
34 sync_install = false,
35 auto_install = true,
36
37 highlight = {
38 enable = true,
39
40 disable = function(lang, buf)
41 local max_filesize = 100 * 1024 -- 100 KB
42 local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
43 if ok and stats and stats.size > max_filesize then
44 return true
45 end
46 end,
47
48 additional_vim_regex_highlighting = false,
49 },
50}