Please tell me there is a keyword lookup plugin for CSS, and that I just can't find it.
@robbie.huffman I think this might be the best way to get what you're looking for: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#cssls
If you don't already use Neovim's LSP features, that's a whole other rabbit hole to go down, but I promise you it's worth it.
Oh fantastic. I'll try that out today.
Working through the setup. Seems like the LS is crashing. Here's what happens when I run it:
=> vscode-css-language-server --stdio
/home/robbie/.local/lib/node_modules/vscode-langservers-extracted/node_modules/vscode-languageserver/lib/node/main.js:237
let counter = counters.get(message) ?? 0;
^
SyntaxError: Unexpected token '?'Any thoughts on what I've done wrong?
Hmm... Maybe it needs a newer Node version? Just a guess, but maybe the ?? operator was a newer addition to the language
Ah that makes a lot of sense. I've done practically no node-related development, so that didn't occur to me.
boom! π₯ that was it
Oh, nice! That was a total guess on my part haha
Oh wow this is amazing.
Take a screenshot! I'm curious. I use LSP a lot, but I haven't tried it for CSS yet
Wow, the documentation with MDN reference! π
That is super nice
for the "old-school" coc.nvim users we have this extension that works great for me: https://github.com/neoclide/coc-css
Interesting... I would assume that there is a good CSS language server out there, but I couldn't find one after a quick Google. I would be surprised if this doesn't exist π€
Right? It would be so handy to get a quick reference on some of the parameters.
Ok now how do we make this work when using garden or spade?