-
Notifications
You must be signed in to change notification settings - Fork 0
/
treesitter.lua
41 lines (40 loc) · 1.18 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
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
if not status_ok then
vim.notify("nvim-treesitter.configs not found!")
return
end
configs.setup{
ensure_installed = "all",
sync_install = false,
ignore_install = { "" }, -- List of parsers to ignore installing
autopairs = {
enable = true,
},
highlight = {
enable = true, -- false will disable the whole extension
disable = { "" }, -- list of language that will be disabled
additional_vim_regex_highlighting = true,
},
rainbow = {
enable = true,
disable = { "" }, -- list of languages you want to disable the plugin for
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
max_file_lines = nil, -- Do not enable for files with more than n lines, int
-- colors = {}, -- table of hex strings
-- termcolors = {} -- table of colour name strings
},
indent = {
enable = true,
disable = { "" }
},
context_commentstring = {
enable = true,
enable_autocmd = false,
config = {
lua = {
__default = "-- %s",
__multiline = "--[[\n%s\n]]"
},
},
},
}