junnplus / lsp-setup.nvim

A simple wrapper for nvim-lspconfig and mason-lspconfig to easily setup LSP servers.
Apache License 2.0
225 stars 12 forks source link

Custom LSPs #19

Open ignamartinoli opened 2 years ago

ignamartinoli commented 2 years ago

Hi, I was trying to config a custom Prolog LSP as I was used to in CoC. I added these lines to my config

require 'nvim-lsp-setup'.setup {
    servers = {
        swipl = {
            cmd = {
                'swipl',
                '-g',
                'use_module(library(lsp_server)).',
                '-g',
                'lsp_server:main',
                '-t',
                'halt',
                '--',
                'stdio'
            },
            filetypes = { 'prolog' },
            settings = {}
        }
}

After doing that I receive [lspconfig] Cannot access configuration for swipl. Ensure this server is listed in `server_configurations.md` or added as a custom server.

Do you know I should make custom servers work with nvim-lsp-setup?

junnplus commented 2 years ago

custom server is not yet supported

ignamartinoli commented 2 years ago

It would be really nice to have, if and when you have time

chemio9 commented 10 months ago

@ignamartinoli already implemented in my fork: chenrry666/lsp-setup.nvim branch fix_inlay_hints

detalis here: anchorite/lsp-setup.nvim ps. I forked the repo from anchorite/lsp-setup.nvim instead of here because inlay_hints is really good.