Skip to content

Commit

Permalink
fix: update lua types to match latest nightly (neovim#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Mar 5, 2024
1 parent 7f5cf11 commit 82a4b30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ local tbl_deep_extend = vim.tbl_deep_extend

local configs = {}

--- @class lspconfig.Config : lsp.ClientConfig
--- @class lspconfig.Config : vim.lsp.ClientConfig
--- @field enabled? boolean
--- @field single_file_support? boolean
--- @field filetypes? string[]
--- @field filetype? string
--- @field on_new_config? function
--- @field autostart? boolean
--- @field package _on_attach? fun(client: lsp.Client, bufnr: integer)
--- @field package _on_attach? fun(client: vim.lsp.Client, bufnr: integer)

--- @param cmd any
local function sanitize_cmd(cmd)
Expand Down
10 changes: 5 additions & 5 deletions lua/lspconfig/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local uv = vim.loop
local async = require 'lspconfig.async'
local util = require 'lspconfig.util'

---@param client lsp.Client
---@param client vim.lsp.Client
---@param root_dir string
---@return boolean
local function check_in_workspace(client, root_dir)
Expand Down Expand Up @@ -88,7 +88,7 @@ end
--- @private
--- @param bufnr integer
--- @param root_dir string
--- @param client lsp.Client
--- @param client vim.lsp.Client
function M:_register_workspace_folders(bufnr, root_dir, client)
local params = {
event = {
Expand Down Expand Up @@ -160,7 +160,7 @@ end
--- @param bufnr integer
--- @param new_config lspconfig.Config
--- @param root_dir string
--- @param client lsp.Client
--- @param client vim.lsp.Client
--- @param single_file boolean
function M:_attach_or_spawn(bufnr, new_config, root_dir, client, single_file)
if check_in_workspace(client, root_dir) then
Expand All @@ -178,7 +178,7 @@ end
--- @param bufnr integer
--- @param new_config lspconfig.Config
--- @param root_dir string
--- @param client lsp.Client
--- @param client vim.lsp.Client
--- @param single_file boolean
function M:_attach_after_client_initialized(bufnr, new_config, root_dir, client, single_file)
local timer = assert(vim.loop.new_timer())
Expand Down Expand Up @@ -222,7 +222,7 @@ function M:add(root_dir, single_file, bufnr)
end
end

--- @return lsp.Client[]
--- @return vim.lsp.Client[]
function M:clients()
local res = {}
for _, client_ids in pairs(self._clients) do
Expand Down

0 comments on commit 82a4b30

Please sign in to comment.