-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtreesitter.lua
61 lines (60 loc) · 1.15 KB
/
treesitter.lua
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
local check_file_size = function(_, bufnr)
return vim.api.nvim_buf_line_count(bufnr) > 100000
end
return {
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
init = function(plugin)
require('lazy.core.loader').add_to_rtp(plugin)
require 'nvim-treesitter.query_predicates'
end,
main = 'nvim-treesitter.configs',
opts = {
ensure_installed = {
'lua',
'query',
'markdown',
'markdown_inline',
'javascript',
'jsdoc',
'typescript',
'tsx',
'json',
'html',
'graphql',
'vue',
'yaml',
'css',
'bash',
'scss',
'vim',
'vimdoc',
'sql',
'regex',
},
highlight = {
enable = true,
disable = check_file_size,
},
indent = {
enable = true,
},
matchup = {
enable = true,
},
},
},
{
'andymass/vim-matchup',
config = function()
vim.g.matchup_matchparen_offscreen = {}
end,
},
{
'windwp/nvim-ts-autotag',
config = function()
require('nvim-ts-autotag').setup()
end,
},
}