Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LSP based CSS completions #14

Open
stevemolitor opened this issue Mar 28, 2022 · 2 comments
Open

Support LSP based CSS completions #14

stevemolitor opened this issue Mar 28, 2022 · 2 comments

Comments

@stevemolitor
Copy link

I had been using the vscode-style-components plugin with lsp-mode for CSS in JS completion, via this configuration:

(setq lsp-clients-typescript-plugins
      (vector
       (list :name "typescript-styled-plugin"
               :location "/path/to/styled-components.vscode-styled-components-1.7.0")))

CSS mode capf seems to work fine too; can't really say which is better yet. But it'd be nice to support both options. Not a huge issue, but might be nice sort of thing.

@orzechowskid
Copy link
Owner

if we enable lsp-mode for the hidden CSS buffer then if we're clever enough I bet we can get LSP's eldoc, xref, and other cool things as well. I might have some time to look into this today.

@orzechowskid
Copy link
Owner

huh, maybe I'm missing something but it doesn't seem as though the default css-ls backend supports textDocument/completion...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants