reddit / emacs

I need help with lsp-mode setup

pedzsanReddit · 2022-11-17 17:16
I am trying to use `lsp-mode` for ruby via [solargraph](https://solargraph.org) and for Rails era templates using `web-mode` via [lsp-tailwindcss](https://github.com/merrickluo/lsp-tailwindcss) and both seems to kinda sorta work but neither one is really giving me all the features that I see that others have. For example if you look at the screenshot [here](https://github.com/merrickluo/lsp-tailwindcss#lsp-tailwindcss) which shows `lsp-tailwindcss` providing a completion list. What is weird is sometimes I get the list but only after a huge time delay. If I do `completion-at-point`, I get a list instantly but it is in the mini buffer and not displayed like the referenced image. I don't know a reasonable method of debugging this and figuring out what is wrong.
yyoncho · 2022-11-17 17:44
Install company-mode?
pedzsanReddit · 2022-11-17 19:58
I have company-mode enabled. Like I said... it works very very occasionally.
yyoncho · 2022-11-18 08:44
check company-idle-delay?
pedzsanReddit · 2022-11-18 16:20
It is currently set to 0.0. I'm using `leaf`. Here is my setup: ``` (leaf company :after lsp-mode :hook (prog-mode . company-mode) :defun global-company-mode :bind (:company-active-map ("<tab>" . company-complete-selection)) (:lsp-mode-map ("<tab>" . company-indent-or-complete-common)) :custom (company-minimum-prefix-length . 1) (company-idle-delay . 0.0)) ``` I am also getting errors in `*Messages*`: ``` LSP :: Error from the Language Server: Unhandled method textDocument/documentColor (Method not Found) ``` I have a chat going with the Tailwind guys too.