Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 1 | require('nvim-treesitter.configs').setup { |
| 2 | highlight = { |
| 3 | enable = true, |
| 4 | additional_vim_regex_highlighting = {'org'}, |
Skyler Grey | f819460 | 2022-10-31 00:07:05 +0000 | [diff] [blame] | 5 | disable = {'sql', 'markdown'}, |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 6 | }, |
| 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 Grey | f819460 | 2022-10-31 00:07:05 +0000 | [diff] [blame] | 27 | disable = {'sql', 'markdown'}, |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 28 | }, |
| 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 Grey | f819460 | 2022-10-31 00:07:05 +0000 | [diff] [blame] | 37 | disable = {'sql', 'markdown'}, |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 38 | }, |
| 39 | indent = { |
| 40 | enable = true, |
Skyler Grey | f819460 | 2022-10-31 00:07:05 +0000 | [diff] [blame] | 41 | disable = {'sql', 'markdown'}, |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 42 | }, |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | require('treesitter-context').setup{ |
| 46 | enable = true, |
Skyler Grey | f819460 | 2022-10-31 00:07:05 +0000 | [diff] [blame] | 47 | disable = {'sql', 'markdown'}, |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 48 | 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 | |
| 64 | vim.cmd[[hi! TreesitterContext guibg=#313640 ctermbg=237]] |