aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlfenzo <lfenzo@protonmail.com>2022-07-24 19:15:52 -0300
committerStephan Seitz <stephan.seitz@fau.de>2022-08-03 12:05:30 -0700
commita51ef776746c8dec846f0f28c85a1e9dd34bb395 (patch)
treee1b1504dd56599d6a433fd5d91c2b33ae6a7ef6d
parentchore: trim space in check-health (diff)
downloadnvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.tar
nvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.tar.gz
nvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.tar.bz2
nvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.tar.lz
nvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.tar.xz
nvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.tar.zst
nvim-treesitter-a51ef776746c8dec846f0f28c85a1e9dd34bb395.zip
Added function/method call highlight groups
-rw-r--r--lua/nvim-treesitter/highlight.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua
index b35467126..b75dc7bf9 100644
--- a/lua/nvim-treesitter/highlight.lua
+++ b/lua/nvim-treesitter/highlight.lua
@@ -41,6 +41,7 @@ hlmap["field"] = "TSField"
hlmap["float"] = "TSFloat"
hlmap["function"] = "TSFunction"
+hlmap["function.call"] = "TSFunctionCall"
hlmap["function.builtin"] = "TSFuncBuiltin"
hlmap["function.macro"] = "TSFuncMacro"
@@ -54,6 +55,7 @@ hlmap["keyword.return"] = "TSKeywordReturn"
hlmap["label"] = "TSLabel"
hlmap["method"] = "TSMethod"
+hlmap["method.call"] = "TSMethodCall"
hlmap["namespace"] = "TSNamespace"
@@ -177,11 +179,13 @@ function M.set_default_hlgroups()
TSFloat = { link = "Float", default = true },
TSFunction = { link = "Function", default = true },
+ TSFunctionCall = { link = "TSFunction", default = true },
TSFuncBuiltin = { link = "Special", default = true },
TSFuncMacro = { link = "Macro", default = true },
TSParameter = { link = "Identifier", default = true },
TSParameterReference = { link = "TSParameter", default = true },
TSMethod = { link = "Function", default = true },
+ TSMethodCall = { link = "TSMethod", default = true },
TSField = { link = "Identifier", default = true },
TSProperty = { link = "Identifier", default = true },
TSConstructor = { link = "Special", default = true },