From 480348edc96ca3d3bc26d8623a4c962d201e97dd Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 15 Sep 2025 18:00:47 +0200 Subject: feat(nvim): support go and auto update plugins following system colorscheme --- config/nvim/lua/plugins/theme.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 config/nvim/lua/plugins/theme.lua (limited to 'config/nvim/lua/plugins/theme.lua') diff --git a/config/nvim/lua/plugins/theme.lua b/config/nvim/lua/plugins/theme.lua new file mode 100644 index 0000000..8902d48 --- /dev/null +++ b/config/nvim/lua/plugins/theme.lua @@ -0,0 +1,15 @@ +return { + { "catppuccin/nvim", name = "catppuccin" }, + { + "f-person/auto-dark-mode.nvim", + opts = { + set_dark_mode = function() + pcall(vim.cmd, "colorscheme " .. "catppuccin-macchiato") + -- darkest one: pcall(vim.cmd, "colorscheme " .. "catppuccin-mocha") + end, + set_light_mode = function() + pcall(vim.cmd, "colorscheme " .. "catppuccin-latte") + end, + } + } +} -- cgit v1.2.3