From e00cd1ab4060915d86b8536b082e663818268b69 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Sun, 29 Dec 2024 13:44:42 +0100 Subject: feat(lsp): return resolved config for vim.lsp.config[name] Allows to retrieve the configuration as it will be used by `lsp.enable` - including the parts merged from `*` and rtp. This is useful for explicit startup control (`vim.lsp.start(vim.lsp.config[name])`) Closes https://github.com/neovim/neovim/issues/31640 --- test/functional/plugin/lsp_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/plugin') diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index f396c837f9..9cefe96e79 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -6147,7 +6147,7 @@ describe('LSP', function() vim.lsp.config('*', { root_markers = { '.git' } }) vim.lsp.config('foo', { cmd = { 'foo' } }) - return vim.lsp._resolve_config('foo') + return vim.lsp.config['foo'] end) ) end) -- cgit