diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 3e7de9d..e45fcb8 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -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)