aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/treesitter_config.lua
blob: 0bc307f77656565d281f2bfb4ad770cb9b420412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require('nvim-treesitter').install {
    'bash',
    'css',
    'csv',
    'dart',
    'diff',
    'dockerfile',
    'gitcommit',
    'gleam',
    'graphql',
    'haskell',
    'html',
    'htmldjango',
    'javascript',
    'jsdoc',
    'json',
    'julia',
    'kotlin',
    'lua',
    'make',
    'markdown',
    'python',
    'r',
    'ruby',
    'rust',
    'sql',
    'svelte',
    'swift',
    'toml',
    'tsx',
    'typescript',
    'yaml'
  }

vim.api.nvim_create_autocmd('User', { pattern = 'TSUpdate',
callback = function()
  require('nvim-treesitter.parsers').lean = {
    install_info = {
      url = 'https://github.com/Julian/tree-sitter-lean',
    },
  }
end})