Fix #167: Add custom_captures config key to set highlights for custom queries

This commit is contained in:
Stephan Seitz 2020-07-12 14:51:11 +02:00 committed by Thomas Vigouroux
parent f803c74ebc
commit 97ad374816
4 changed files with 33 additions and 0 deletions

View file

@ -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,