fix: deprecated lua calls

This commit is contained in:
2025-01-31 15:35:39 +01:00
parent b4aba6e5f6
commit 834aa76ce7
2 changed files with 57 additions and 18 deletions
+4 -9
View File
@@ -58,10 +58,10 @@ function M.validate(name, config)
for _, key in ipairs(f) do
local o, r = pcall(vim.validate, {
mode = { key.mode, { "s", "t" } },
lhs = { key.lhs, "s" },
rhs = { key.rhs, { "s", "f" } },
opts = { key.opts, "t", true },
mode = { key.mode, { "string", "table" } },
lhs = { key.lhs, "string" },
rhs = { key.rhs, { "string", "function" } },
opts = { key.opts, "table", true },
})
if not o then
@@ -116,11 +116,6 @@ function M:on_attach(client, bufnr)
vim.cmd.highlight({ "link LspReferenceText Visual", bang = true })
vim.cmd.highlight({ "link LspReferenceWrite Visual", bang = true })
vim.lsp.handlers["textDocument/hover"] =
vim.lsp.with(vim.lsp.handlers.hover, { border = "single" })
vim.lsp.handlers["textDocument/signatureHelp"] =
vim.lsp.with(vim.lsp.handlers.signature_help, { border = "single" })
---@alias lsp.Client vim.lsp.Client
-- require("lsp_compl").attach(client, bufnr, {
-- server_side_fuzzy_completion = true,