fix(vim): start ts_lsp in monorepo

When you are in a monorepo you don't always have a tsconfig in the root. You do
however have a yarn.lock. This will now start ts_ls when it finds a yarn.lock
in the root of the repo.
This commit is contained in:
Ade Attwood 2024-12-17 11:12:03 +00:00
parent dc23131046
commit 4530bdfb56

View file

@ -11,7 +11,7 @@ local servers = {
-- Language servers for the day to day web development, could probably think
-- about loosing the html and css one and living with typescript, rescript
-- and emmet
ts_ls = { enabled = has_file "tsconfig.json" },
ts_ls = { enabled = has_file "tsconfig.json" or has_file "yarn.lock" },
denols = { enabled = has_file "deno.json" or has_file "deno.jsonc" },
html = {},
cssls = {},