efm-langserver
efm-langserver copied to clipboard
Unexpected Token

So when I load up a scss file I get this error and not sure what is causing it
lsp.efm.setup {
on_attach = function(client)
client.resolved_capabilities.document_formatting = true
on_attach_common(client)
end,
init_options = {documentFormatting = true},
root_dir = function()
if not eslint_config_exists() then
return nil
end
return vim.fn.getcwd()
end,
settings = {
-- rootMarkers = {".git/"},
languages = {
lua = {luafmt},
typescript = {prettier, eslint},
javascript = {prettier, eslint},
typescriptreact = {prettier, eslint},
javascriptreact = {prettier, eslint},
["javascript.jsx"] = {prettier, eslint},
["typescript.tsx"] = {prettier, eslint},
yaml = {prettier},
json = {prettier},
html = {prettier},
less = {prettier, eslint},
scss = {prettier, eslint},
css = {prettier, eslint},
markdown = {prettier}
}
},
filetypes = {
"javascript",
"javascriptreact",
"javascript.jsx",
"typescript",
"typescript.tsx",
"typescriptreact",
"less",
"scss",
"css"
}
}
Thoughts?
Looks like its coming from flint