Xinqi Bao's Git

57100d2b80c083cfc682e65afd05f5b2d91eb6fa
[dotfiles.git] / .config / nvim / lua / plugin-config / nvim-treesitter.lua
1 require'nvim-treesitter.configs'.setup {
2 --[[
3 -- One of "all", "maintained" (parsers with maintainers), or a list of languages
4 ensure_installed = "maintained",
5 -- Install languages synchronously (only applied to `ensure_installed`)
6 sync_install = false,
7 -- List of parsers to ignore installing
8 ignore_install = { "javascript" },
9 ]]
10
11 -- Consistent syntax highlighting.
12 highlight = {
13 enable = true,
14 additional_vim_regex_highlighting = false
15 },
16
17 -- Incremental selection based on the named nodes from the grammar.
18 incremental_selection = {
19 enable = true,
20 keymaps = {
21 init_selection = '<CR>',
22 node_incremental = '<CR>',
23 node_decremental = '<BS>',
24 scope_incremental = '<TAB>',
25 }
26 },
27
28 -- Indentation based on treesitter for the = operator. NOTE: This is an experimental feature.
29 indent = {
30 enable = false
31 }
32 }