I must be missing something. I’ve been trying for too long to figure out how to get a language server in emacs, specifically for python, but at this point I’d be happy to see anything work. I am so fucking sick of following written online tutorials that never work but I need to use something other than vs code, so the “trying to get emacs to fucking work” effort will continue.

I gave up on regular emacs because there seems to be no way to install lsp-mode on it. doomemacs seems to be a more refined easy-to-use version and has a working package manager so I started using that. I finally did manage to get lsp-mode installed in doomemacs but that’s just the first step of what is a convoluted multi-step process and I don’t know what to do next.

Can someone link me to a definitive, actually working, actually correct video tutorial of how to get a language server on doomemacs?

  • aramus@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    3 months ago

    I think your problem is that you installed the Emacs “plugin”, but that is just the interface to the server. I think you need to install the actual language server on your system. Outside of Emacs, in your package manager or with pipx for example.

    You can also try to press Spc-: and then run lsp-install-server inside of doom Emacs, but I had problems with that.

  • Deestan@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    Apologies if you already know this, but just making sure: A language server is first installed independently from its emacs/vim/etc integration.

    You have lsp-mode set up. Did you install python-lsp-server and just need a guide to point lsp-mode at it?

  • chepdamona@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 months ago

    One problem I had with getting a language server working in Emacs was not realising that the LSP I had installed didn’t work with the python version I had installed. Check the LSP logs. Once I was using the right version of python everything worked fine. Just install python and an LSP (usually via pip) and activate LSP mode and the python LSP flag in your doom config. The doom python module docs cover pretty much everything you need