• felbane@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    VScode is certainly a heck of a lot easier to get LSPs working than e.g. vim.

    If someone made it actually easy to set up neovim with lsp support that works as well as with vscode, there’d be no reason to give Microsoft any attention at all

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Is the LSP support a plugin in Neo-/Vim ?

      In Kate, you just install the LSP server, which is typically as simple as apt install marksman and then Kate will automatically start it when it encounters an appropriate file.

      Kate also has a Vi Mode, if that’s what you’re looking for. ¯\_(ツ)_/¯

      • marlowe221@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        Where might I find a list of languages/LSPs that Kate supports and will load automatically like that?

      • AeonFelis@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        The LSP support itself is builtin in Neovim (not in Vim though, AFAIK), but each language server needs to be configured and activated. There is a plugin with all(ish) configurations - https://github.com/neovim/nvim-lspconfig - and activation is done with a vim.lsp.enable("server-name") command, which you just put in your config and the Neovim will start the LSP when you open a relevant file.

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          30 days ago

          Ah, I guess that makes sense. Kate automatically detects available LSP server executables but then prompts you before starting them for the first time, in case you did not install that and it’s malware, or I guess, in case you just placed a script there which happened to be called the same, but would be very bad to run.

          Neovim could theoretically do that, too, but then you need a way to block executables, so that it stops prompting you every time, which you’d probably want in a separate config file.
          So, it’s definitely a simpler solution and perhaps moreso what one would expect from a TUI editor, for you to just list the ones to run in the config file.