From 54617a18f4cf46f0c2f6d024fa6feb7515fe036d Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Thu, 31 Oct 2024 00:32:18 -0500 Subject: fix: correct type annotation on lspconfig.Config::on_new_config (#3411) It takes a new_root_dir parameter as documented in the help docs. Signed-off-by: Tristan Partin --- lua/lspconfig/configs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index 7d169ec7..77d07862 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -10,7 +10,7 @@ local configs = {} --- @field single_file_support? boolean --- @field filetypes? string[] --- @field filetype? string ---- @field on_new_config? fun(new_config: lspconfig.Config?) +--- @field on_new_config? fun(new_config: lspconfig.Config?, new_root_dir: string) --- @field autostart? boolean --- @field package _on_attach? fun(client: vim.lsp.Client, bufnr: integer) --- @field root_dir? string|fun(filename: string, bufnr: number) -- cgit v1.2.3-70-g09d2