mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
add hack for bcr
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user