refactor(lua): consistent use of local aliases

This commit is contained in:
Christian Clason
2025-08-26 15:31:16 +02:00
committed by Christian Clason
parent a33284c2c0
commit c10e36fc01
27 changed files with 59 additions and 59 deletions

View File

@@ -225,13 +225,13 @@ end
---@param message_type lsp.MessageType
function log._from_lsp_level(message_type)
if message_type == protocol.MessageType.Error then
return vim.log.levels.ERROR
return log_levels.ERROR
elseif message_type == protocol.MessageType.Warning then
return vim.log.levels.WARN
return log_levels.WARN
elseif message_type == protocol.MessageType.Info or message_type == protocol.MessageType.Log then
return vim.log.levels.INFO
return log_levels.INFO
else
return vim.log.levels.DEBUG
return log_levels.DEBUG
end
end