refactor(LSP): use the new vim.lsp.* functions to set up LSP servers

This commit is contained in:
2025-06-05 11:30:14 +02:00
parent c569c12ae7
commit e8ff3fed7c
29 changed files with 556 additions and 1744 deletions
+44
View File
@@ -0,0 +1,44 @@
local M = {}
--- Log error message
---@param fmt string
---@param ... any
function M.error(fmt, ...)
vim.notify(
fmt:format(...),
vim.log.levels.ERROR
)
end
--- Log warning message
---@param fmt string
---@param ... any
function M.warning(fmt, ...)
vim.notify(
fmt:format(...),
vim.log.levels.WARN
)
end
--- Log info message
---@param fmt string
---@param ... any
function M.info(fmt, ...)
vim.notify(
fmt:format(...),
vim.log.levels.INFO
)
end
--- Log debug message
---@param fmt string
---@param ... any
function M.debug(fmt, ...)
vim.notify(
fmt:format(...),
vim.log.levels.DEBUG
)
end
return M