add hack for bcr

This commit is contained in:
Thomas Ruoff
2024-09-20 09:36:33 +02:00
parent c190f92ee7
commit 0ee940f436

View File

@@ -41,7 +41,16 @@ return {
cssls = true,
ts_ls = {
root_dir = util.find_git_ancestor,
root_dir = function(fname)
-- by default use parent .git folder
local git_root = util.find_git_ancestor(fname)
-- well, this is a bit of a hack for the frontend-apps monorepo
if fname:find 'frontend%-apps/bcr' then
return git_root .. '/bcr'
else
return git_root
end
end,
settings = {
diagnostics = {
ignoredCodes = {
@@ -90,7 +99,6 @@ return {
'lua_ls',
'eslint_d',
'prettier',
-- "tailwind-language-server",
}
vim.list_extend(ensure_installed, servers_to_install)