Skip to content

Commit

Permalink
feat(ts): add typescript-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
xzbdmw committed Jan 5, 2025
1 parent 20253cd commit 64adaad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ return {
["typescript-language-server"] = {
extra_info_hl = "@comment",
},
["typescript-tools"] = {
extra_info_hl = "@comment",
},
ts_ls = {
extra_info_hl = "@comment",
},
Expand All @@ -59,6 +62,9 @@ return {
-- Such as "From <stdio.h>".
extra_info_hl = "@comment",
},
roslyn = {
extra_info_hl = "@comment",
},

-- If true, try to highlight "not supported" languages.
fallback = true,
Expand Down
5 changes: 4 additions & 1 deletion lua/colorful-menu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ M.config = {
["typescript-language-server"] = {
extra_info_hl = "@comment",
},
["typescript-tools"] = {
extra_info_hl = "@comment",
},
ts_ls = {
extra_info_hl = "@comment",
},
Expand Down Expand Up @@ -177,7 +180,7 @@ function M.highlights(completion_item, ls)
elseif ls == "clangd" then
item = require("colorful-menu.languages.cpp").clangd(completion_item, ls)
--
elseif ls == "typescript-language-server" or ls == "ts_ls" or ls == "tsserver" then
elseif ls == "typescript-language-server" or ls == "ts_ls" or ls == "tsserver" or ls == "typescript-tools" then
item = require("colorful-menu.languages.typescript").ts_server(completion_item, ls)
--
elseif ls == "vtsls" then
Expand Down

0 comments on commit 64adaad

Please sign in to comment.