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 /runtime/lua/vim/lsp/health.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 'runtime/lua/vim/lsp/health.lua')
-rw-r--r-- | runtime/lua/vim/lsp/health.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/health.lua b/runtime/lua/vim/lsp/health.lua index d94bc70a65..8af9f2f791 100644 --- a/runtime/lua/vim/lsp/health.lua +++ b/runtime/lua/vim/lsp/health.lua @@ -184,7 +184,7 @@ local function check_enabled_configs() vim.health.start('vim.lsp: Enabled Configurations') for name in vim.spairs(vim.lsp._enabled_configs) do - local config = vim.lsp._resolve_config(name) + local config = vim.lsp.config[name] local text = {} --- @type string[] text[#text + 1] = ('%s:'):format(name) for k, v in |