!oavAASPiuniBTIFgez:matrix.org

Emacs - System Crafters

368 Members
Chat about everyone's favorite text editor, Emacs! Check out the "official" room at #emacs:matrix.org too. Join our space for other System Crafters related rooms: #systemcrafters-space:matrix.org41 Servers

Load older messages


SenderMessageTime
22 Feb 2024
@skeleton_of_ren:matrix.orgRenIs there any other way to configure LSP save for this variable? You implied there is, I would like a link or some info on that03:45:49
@gerogaga:matrix.orggerogaga
In reply to @skeleton_of_ren:matrix.org
Is there any other way to configure LSP save for this variable? You implied there is, I would like a link or some info on that
You can set eglot-server-programs to call the LSP with certain flags.
03:48:33
@gerogaga:matrix.orggerogagaOr I guess you can write a JSON file manually and call it via an argument.03:50:40
@gerogaga:matrix.orggerogagaBut I'd maybe look into eglot-events-buffer to see what's going on, according to https://haskell-language-server.readthedocs.io/en/latest/configuration.html#use-package-eglot it should work.03:51:41
@gerogaga:matrix.orggerogagaAlso, it seems like the Haskell LSP uses YAML for configuration for some reason?03:54:18
@gerogaga:matrix.orggerogagaJust to make sure, you're adding the LSP to eglot-server-programs, right?03:58:52
@gerogaga:matrix.orggerogaga* Just to make sure, you're adding the LSP command to eglot-server-programs, right?04:01:04
@skeleton_of_ren:matrix.orgRen haskell-language-server is preconfigured on eglot-server-programs as (haskell-mode "haskell-language-server-wrapper" "--lsp"). That is the documentation I based my work thus far off of, it's why I am starting to think I should make an issue or something. The events buffer doesn't really say anything, no errors, no mention of my configuration. Passing the configuration in the server program sounds like it could be a good work around. I am not really sure how to do that, though, the variable isn't set until eglot has been started once. 04:26:51
@gerogaga:matrix.orggerogagaReally? It's not in eglot-server-programs for me.04:27:21
@skeleton_of_ren:matrix.orgRenI checked, I am not setting it anywhere, maybe haskell-mode does it04:28:19
@skeleton_of_ren:matrix.orgRenBut it is in the list, and eglot starts the lsp when I open a haskell buffer04:28:46
@gerogaga:matrix.orggerogagaThen could it be that it's set after eglot-workspace-configuration and that fucks something up?04:29:32
@gerogaga:matrix.orggerogaga
In reply to @skeleton_of_ren:matrix.org
haskell-language-server is preconfigured on eglot-server-programs as (haskell-mode "haskell-language-server-wrapper" "--lsp"). That is the documentation I based my work thus far off of, it's why I am starting to think I should make an issue or something. The events buffer doesn't really say anything, no errors, no mention of my configuration. Passing the configuration in the server program sounds like it could be a good work around. I am not really sure how to do that, though, the variable isn't set until eglot has been started once.
Also, it seems to take in a YAML file as a config that you can generate with gen-hie (if I understood it correctly), you could try using that.
04:34:13
@skeleton_of_ren:matrix.orgRen

tried out this, no dice, and it doesn't seem there are ways to pass in a configuration as args, at least not in the basic help. I gotta go to bed now so I'll investigate further later

(with-eval-after-load 'eglot
  (add-to-list 'eglot-server-programs
               '(haskell-mode . ("haskell-language-server-wrapper" "--lsp"))))

Oh I forgot the mention, the hie stuff is special project directory configuration for telling the lsp how you project is structured if it is too complex for it to guess

04:36:17
@skeleton_of_ren:matrix.orgRen *

tried out this, no dice, and it doesn't seem there are ways to pass in a configuration as args, at least not in the basic help. I gotta go to bed now so I'll investigate further later

(with-eval-after-load 'eglot
  (add-to-list 'eglot-server-programs
               '(haskell-mode . ("haskell-language-server-wrapper" "--lsp"))))

Oh I forgot the mention, the hie stuff is special project directory configuration for telling the hls how you project is structured if it is too complex for it to guess

04:36:52
@gerogaga:matrix.orggerogagaFor the sake of posterity, the following works for pylsp: ``` (setq-default eglot-workspace-configuration '((pylsp (plugins (jedi_completion (fuzzy . t)) (pydocstyle (enabled . t)))))) ```04:42:12
@gerogaga:matrix.orggerogaga* For the sake of posterity, the following works for pylsp: (setq-default eglot-workspace-configuration '((pylsp (plugins (jedi_completion (fuzzy . t)) (pydocstyle (enabled . t))))))04:42:56
@gerogaga:matrix.orggerogagaI don't know how to make code blocks, sorry 04:43:11
@skeleton_of_ren:matrix.orgRenYeah hls has got the plugin options too, but according to the docs, "Formatting provider (haskell.formattingProvider, default ormolu): what formatter to use; one of floskell, ormolu, fourmolu, or stylish-haskell", and grepping for "formattingProvider", `"haskell04:48:29
@skeleton_of_ren:matrix.orgRen * Yeah hls has got the plugin options too, but according to the docs, "Formatting provider (haskell.formattingProvider, default ormolu): what formatter to use; one of floskell, ormolu, fourmolu, or stylish-haskell", and grepping for "formattingProvider", `"haskell": { "formattingProvider": } }` is seemingly correct. 04:48:53
@skeleton_of_ren:matrix.orgRen * Yeah hls has got the plugin options too, but according to the docs, "Formatting provider (haskell.formattingProvider, default ormolu): what formatter to use; one of floskell, ormolu, fourmolu, or stylish-haskell", and grepping for "formattingProvider", "haskell": { "formattingProvider": } is seemingly correct. 04:49:40
@glenneth:matrix.orgglenneth⚡🐫Morning :)06:30:48
23 Feb 2024
@glenneth:matrix.orgglenneth⚡🐫Good morning :)08:49:54
@rhododendrox:matrix.orgrhododendrox joined the room.12:09:02
24 Feb 2024
@deedend:matrix.orgdeedendHello, I'm having a bit of an issue with emacs on Arch Linux... It doesn't recognise the JetBrains Mono font that I've specified in the config, returning an error, but I have that font installed into my system04:29:33
@golu8:matrix.orggolu8
In reply to @deedend:matrix.org
Hello, I'm having a bit of an issue with emacs on Arch Linux... It doesn't recognise the JetBrains Mono font that I've specified in the config, returning an error, but I have that font installed into my system
which error?
05:02:03
@deedend:matrix.orgdeedendFonts not found05:12:09
@gavinok:matrix.orgGavin FreebornNot sure if there is still an exwm page channel anymore but has anyone had success using desktop.el with exwm?17:41:53
@lambdanil:matrix.orgnil/Lain/Lynn changed their profile picture.20:49:45
25 Feb 2024
@glenneth:matrix.orgglenneth⚡🐫Good morning :)06:41:17

There are no newer messages yet.


Back to Room ListRoom Version: 10