mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
Fix #167: Add custom_captures config key to set highlights for custom queries
This commit is contained in:
parent
f803c74ebc
commit
97ad374816
4 changed files with 33 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ require'nvim-treesitter.configs'.setup {
|
|||
highlight = {
|
||||
enable = true, -- false will disable the whole extension
|
||||
disable = { 'c', 'rust' }, -- list of language that will be disabled
|
||||
custom_captures = { -- mapping of user defined captures to highlight groups
|
||||
-- ["foo.bar"] = "Identifier" -- highlight own capture @foo.bar with highlight group "Identifier", see :h nvim-treesitter-query-extensions
|
||||
},
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue