You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As exampled in #471, I reckon the way to set up lsp-bridge-get-single-lang-server-by-project is by statically setting it in init.el. I personally use .dir-locals.el for my project specific set up. Is there a way to dynamically set it specifically per project through .dir-locals.el? perhaps like:
((nil. ((eval. (setq lsp-bridge-get-single-lang-server-by-project
(lambda (project-pathfilepath)
(when (string-equal project-path (file-name-directory buffer-file-name))
;; instead of having it statically set up like "~/.local/ansible/"
(ansible-language-server))))))))
Thanks
PS: Also to note I am still currently unable to set up lsp-bridge-get-single-lang-server-by-project properly. Even if I statically set project-path manually. In above case any yaml file still calls yaml-language-server instead of ansible-language-server
The text was updated successfully, but these errors were encountered:
From what I understand lsp-bridge-get-single-lang-server-by-project is set up through the user's init.el. My questions were:
Is there a way to set up lsp-bridge-get-single-lang-server-by-project in project-by-project basis through .dir-locals.el? Instead of having it set up in user's init.el.
Furthermore, by "dynamically" I meant that instead of having the directory or a file location being pointed out statically ( by writing the string for the file or project directory ), just pick the current directory for the project.
As exampled in #471, I reckon the way to set up
lsp-bridge-get-single-lang-server-by-project
is by statically setting it ininit.el
. I personally use.dir-locals.el
for my project specific set up. Is there a way to dynamically set it specifically per project through.dir-locals.el
? perhaps like:Thanks
PS: Also to note I am still currently unable to set up
lsp-bridge-get-single-lang-server-by-project
properly. Even if I statically setproject-path
manually. In above case any yaml file still callsyaml-language-server
instead ofansible-language-server
The text was updated successfully, but these errors were encountered: