mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
add TSNone
This commit is contained in:
@@ -68,6 +68,8 @@ hlmap["text.title"] = "TSTitle"
|
||||
hlmap["text.literal"] = "TSLiteral"
|
||||
hlmap["text.uri"] = "TSURI"
|
||||
|
||||
hlmap["none"] = "TSNone"
|
||||
|
||||
function M.attach(bufnr, lang)
|
||||
local lang = lang or parsers.get_buf_lang(bufnr)
|
||||
local config = configs.get_module('highlight')
|
||||
|
||||
@@ -67,3 +67,5 @@ highlight default TSUnderline term=underline cterm=underline gui=underline
|
||||
highlight default link TSTitle Title
|
||||
highlight default link TSLiteral String
|
||||
highlight default link TSURI Underlined
|
||||
|
||||
highlight default TSNone term=none cterm=none gui=none guifg=none guibg=none
|
||||
|
||||
@@ -8,3 +8,5 @@
|
||||
(jsx_closing_element name: (identifier) @variable.builtin)
|
||||
(jsx_opening_element name: (identifier) @variable.builtin)
|
||||
(jsx_self_closing_element name: (identifier) @variable.builtin)
|
||||
|
||||
(jsx_text) @none
|
||||
|
||||
Reference in New Issue
Block a user