lsp-setup.nvim icon indicating copy to clipboard operation
lsp-setup.nvim copied to clipboard

Custom LSPs

Open ignamartinoli opened this issue 1 year ago • 3 comments

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?

ignamartinoli avatar Jul 07 '22 23:07 ignamartinoli

custom server is not yet supported

junnplus avatar Jul 08 '22 02:07 junnplus

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

ignamartinoli avatar Jul 08 '22 03:07 ignamartinoli

@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.

chenrry666 avatar Dec 24 '23 05:12 chenrry666