feat: add auto-dark-mode conditional support

This commit is contained in:
2024-11-03 01:00:26 -04:00
parent a211c67e03
commit 6bf5f8de94
+10
View File
@@ -8,6 +8,12 @@ local M = {}
local func = require("data.func")
local types = require("data.types")
-- Auto-dark-mode conditional options
M.auto_dark_mode = function()
return func.check_global_var("autodarkmode", true, false)
and not func.is_ssh()
end
--- Auto Save conditional options
M.autosave = function()
return func.check_global_var("autosave", true, false)
@@ -141,6 +147,10 @@ M.tabnine = function()
return func.check_global_var("aitool", "tabnine", "neocodeium")
end
M.todo = function()
return vim.bo.readonly == false
end
--- TMux conditional options
M.tmux = function()
return func.is_tmux()