From 6307f35be8805d02fd0c96829945b88012b3d917 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 21 Apr 2021 10:16:09 +0200 Subject: [PATCH] feat: added highlighting TS query for typescript @keyword.function --- lua/tokyonight/theme.lua | 2 +- queries/typescript/highlights.scm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 queries/typescript/highlights.scm diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 92ee2de..31ae49b 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -198,7 +198,7 @@ function M.setup(config) -- TSFuncMacro = { }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust. -- TSInclude = { }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua. TSKeyword = { fg = c.purple, style = config.keywordStyle }, -- For keywords that don't fall in previous categories. - TSKeywordFunction = { fg = c.purple, style = config.functionStyle }, -- For keywords used to define a fuction. + TSKeywordFunction = { fg = c.magenta, style = config.functionStyle }, -- For keywords used to define a fuction. TSLabel = { fg = c.blue }, -- For labels: `label:` in C and `:label:` in Lua. -- TSMethod = { }; -- For method calls and definitions. -- TSNamespace = { }; -- For identifiers referring to modules and namespaces. diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm new file mode 100644 index 0000000..6bf4c87 --- /dev/null +++ b/queries/typescript/highlights.scm @@ -0,0 +1 @@ +"function" @keyword.function