-
I'm new to lsp. I'm using lsp-docker for a specific project which is starting Solargraph inside the container for Ruby files. Emacs is outside the container. Currently, that is the only place I'm using lsp-mode. What I need (I think) is to do Currently I have an eval in my .dir-locals.el file that calls I'm just wondering if I'm doing things right. Thank you for your time |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
(lsp-deferred)
which will run(lsp)
when the buffer becomes visible. Also, call them on theruby-mode-hook
. That would make sure the lsp will be started every time you open a new Ruby file.And you don't have to worry about calling
lsp
on every new source file open, it would not have much negative impact on those