blob: 1b5efbeecd6db2dda1efcbfe8bbb974f9322c283 [file] [log] [blame]
Skyler Greya7feb6e2022-08-26 06:51:55 +01001require('nvim-treesitter.configs').setup {
2 highlight = {
3 enable = true,
4 additional_vim_regex_highlighting = {'org'},
Skyler Greyf8194602022-10-31 00:07:05 +00005 disable = {'sql', 'markdown'},
Skyler Greya7feb6e2022-08-26 06:51:55 +01006 },
7 rainbow = {
8 enable = true,
9 extended_mode = true,
10 max_file_lines = nil,
11 colors = {
12 "#e06c75",
13 "#e5c07b",
14 "#98c379",
15 "#56b6c2",
16 "#61afef",
17 "#c678dd",
18 },
19 termcolors = {
20 "168",
21 "180",
22 "114",
23 "73",
24 "75",
25 "176",
26 },
Skyler Greyf8194602022-10-31 00:07:05 +000027 disable = {'sql', 'markdown'},
Skyler Greya7feb6e2022-08-26 06:51:55 +010028 },
29 incremental_selection = {
30 enable = true,
31 keymaps = {
32 init_selection = "gnn",
33 node_incremental = "grn",
34 scope_incremental = "grc",
35 node_decremental = "grm",
36 },
Skyler Greyf8194602022-10-31 00:07:05 +000037 disable = {'sql', 'markdown'},
Skyler Greya7feb6e2022-08-26 06:51:55 +010038 },
39 indent = {
40 enable = true,
Skyler Greyf8194602022-10-31 00:07:05 +000041 disable = {'sql', 'markdown'},
Skyler Greya7feb6e2022-08-26 06:51:55 +010042 },
Skyler Greya7feb6e2022-08-26 06:51:55 +010043}
44
45require('treesitter-context').setup{
46 enable = true,
Skyler Greyf8194602022-10-31 00:07:05 +000047 disable = {'sql', 'markdown'},
Skyler Greya7feb6e2022-08-26 06:51:55 +010048 trim_scope = 'outer',
49 patterns = {
50 default = {
51 'class',
52 'function',
53 'method',
54 'for',
55 'while',
56 'if',
57 'switch',
58 'case',
59 },
60 },
61 mode = 'topline'
62}
63
64vim.cmd[[hi! TreesitterContext guibg=#313640 ctermbg=237]]