disable prettier and is_day
This commit is contained in:
parent
73e6a49aa3
commit
79638bac2c
2 changed files with 3 additions and 18 deletions
|
|
@ -138,7 +138,7 @@ return {
|
|||
}
|
||||
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, { "stylua", "yamlfmt", "autopep8", "prettier" })
|
||||
vim.list_extend(ensure_installed, { "stylua", "yamlfmt", "autopep8", "biome" })
|
||||
require("mason-tool-installer").setup({ ensure_installed = ensure_installed })
|
||||
|
||||
require("mason-lspconfig").setup({
|
||||
|
|
|
|||
|
|
@ -5,27 +5,12 @@ local dark = "catppuccin-mocha"
|
|||
|
||||
---@return boolean
|
||||
function M.is_daytime()
|
||||
-- check if command exists or not
|
||||
local cmd_name = "asadesuka"
|
||||
local cmd_flags = "-offset 30"
|
||||
local has_asadesuka = require("juancwu.utils.os").cmd_exists(cmd_name)
|
||||
if has_asadesuka then
|
||||
local handle = io.popen(cmd_name .. " " .. cmd_flags)
|
||||
if handle == nil then
|
||||
return M.legacy_is_daytime()
|
||||
end
|
||||
local result = handle:read("*a")
|
||||
handle:close()
|
||||
return result:match("true")
|
||||
else
|
||||
return M.legacy_is_daytime()
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
---@return boolean
|
||||
function M.legacy_is_daytime()
|
||||
local current_hour = tonumber(os.date("%h"))
|
||||
return current_hour >= 7 and current_hour < 19
|
||||
return false
|
||||
end
|
||||
|
||||
---@return string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue