efm-langserver icon indicating copy to clipboard operation
efm-langserver copied to clipboard

Unexpected Token

Open jrock2004 opened this issue 4 years ago • 1 comments

image

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?

jrock2004 avatar Jun 21 '21 18:06 jrock2004

Looks like its coming from flint

jrock2004 avatar Jun 21 '21 18:06 jrock2004