diff options
author | Mathias Fussenegger <f.mathias@zignar.net> | 2024-12-29 13:44:42 +0100 |
---|---|---|
committer | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2024-12-31 13:18:05 +0100 |
commit | e00cd1ab4060915d86b8536b082e663818268b69 (patch) | |
tree | f7689b634f6b6d03bff8b9d81f7249da4bbf29d7 /test/functional/plugin/lsp_spec.lua | |
parent | 1877cd5fcdc0bbe5f3d0685d42d4e295fb819724 (diff) | |
download | rneovim-e00cd1ab4060915d86b8536b082e663818268b69.tar.gz rneovim-e00cd1ab4060915d86b8536b082e663818268b69.tar.bz2 rneovim-e00cd1ab4060915d86b8536b082e663818268b69.zip |
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
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |