Browse Source

chore: format source code

my-config
github-actions[bot] 3 years ago
parent
commit
7c9b44f1c1
  1. 6
      lua/doom/modules/config/doom-lsp-installer.lua
  2. 5
      lua/doom/utils/init.lua

6
lua/doom/modules/config/doom-lsp-installer.lua

@ -188,7 +188,7 @@ return function()
if server:is_installed() then
table.insert(uninstalling_servers, lsp_name)
server:uninstall()
log.info('doom-lsp-installer: Uninstalling server ' .. lsp_name .. '.')
log.info("doom-lsp-installer: Uninstalling server " .. lsp_name .. ".")
end
else
local server_config = server.name == "sumneko_lua" and lua_lsp
@ -203,7 +203,7 @@ return function()
if not server:is_installed() then
table.insert(installing_servers, lsp_name)
server:install()
log.info('doom-lsp-installer: Installing server ' .. lsp_name .. '.')
log.info("doom-lsp-installer: Installing server " .. lsp_name .. ".")
end
end
end
@ -224,7 +224,7 @@ return function()
if not server:is_installed() then
table.insert(installing_servers, lsp_name)
server:install()
log.info('doom-lsp-installer: Installing server ' .. lsp_name .. '.')
log.info("doom-lsp-installer: Installing server " .. lsp_name .. ".")
end
end
end

5
lua/doom/utils/init.lua

@ -13,7 +13,6 @@ local system = require("doom.core.system")
--- Doom Nvim version
utils.doom_version = "3.2.0-beta2"
--- For autocommands, extracted from
--- https://github.com/norcalli/nvim_utils
--- @param definitions table<string, table<number, string>>
@ -140,8 +139,8 @@ end
--- @param decimalplace number|nil - Number of decimal places
--- @return number
utils.round = function(num, decimalplace)
local mult = 10^(decimalplace or 0)
return math.floor(num * mult + 0.5)/mult
local mult = 10 ^ (decimalplace or 0)
return math.floor(num * mult + 0.5) / mult
end
--- Searches for a number of executables in the user's path

Loading…
Cancel
Save