]> git.r.bdr.sh - rbdr/dotfiles/blame - config/nvim/lua/treesitter_config.lua
Update yum to dnf
[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',
21 'python',
22 'ruby',
23 'rust',
24 'sql',
25 'svelte',
26 'swift',
27 'toml',
28 'tsx',
29 'typescript',
30 'yaml'
31 },
32
33 sync_install = false,
34 auto_install = true,
35
36 highlight = {
37 enable = true,
38
39 disable = function(lang, buf)
40 local max_filesize = 100 * 1024 -- 100 KB
41 local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
42 if ok and stats and stats.size > max_filesize then
43 return true
44 end
45 end,
46
47 additional_vim_regex_highlighting = false,
48 },
49}