summaryrefslogtreecommitdiff
path: root/lua/ui.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2022-10-27 15:20:21 +0800
committerIan Griffin <migriffin@disroot.org>2022-10-27 15:20:21 +0800
commit45464380bc1a489fb92e53798081c42b9abb6628 (patch)
tree779a203a750e222c6c5c69fcbe5c849d01ebc9f4 /lua/ui.lua
parent0e1bf5aad478a4030f31acd8bbea874b71e42f43 (diff)
few small fixes
Diffstat (limited to 'lua/ui.lua')
-rw-r--r--lua/ui.lua22
1 files changed, 19 insertions, 3 deletions
diff --git a/lua/ui.lua b/lua/ui.lua
index e391a73..ccbe3e0 100644
--- a/lua/ui.lua
+++ b/lua/ui.lua
@@ -20,10 +20,26 @@ pk_use {
--}
--]]
pk_use {
- 'Th3Whit3Wolf/one-nvim',
+ 'Shatur/neovim-ayu',
config = function()
- require('conftool').set({'background', "light"})
- vim.cmd [[colorscheme one-nvim]]
+ local ct = require('conftool')
+ local hr = os.date('*t').hour
+
+ --[[
+ if hr >= 21 then
+ ct.set({'background', 'dark'})
+ elseif hr >= 7 then
+ ct.set({'background', 'light'})
+ elseif hr >= 0 then
+ ct.set({'background', 'light'})
+ end
+ ]]--
+ ct.set({'background', 'light'})
+
+ require('ayu').setup {
+ mirage = false,
+ }
+ vim.cmd [[colorscheme ayu]]
end
}