mirror of
https://github.com/tomru/nvim.git
synced 2026-03-04 15:07:16 +01:00
add hack for bcr
This commit is contained in:
@@ -41,7 +41,16 @@ return {
|
|||||||
cssls = true,
|
cssls = true,
|
||||||
|
|
||||||
ts_ls = {
|
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 = {
|
settings = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
ignoredCodes = {
|
ignoredCodes = {
|
||||||
@@ -90,7 +99,6 @@ return {
|
|||||||
'lua_ls',
|
'lua_ls',
|
||||||
'eslint_d',
|
'eslint_d',
|
||||||
'prettier',
|
'prettier',
|
||||||
-- "tailwind-language-server",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.list_extend(ensure_installed, servers_to_install)
|
vim.list_extend(ensure_installed, servers_to_install)
|
||||||
|
|||||||
Reference in New Issue
Block a user