diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/voltage/highlights/editor.lua (renamed from lua/mycolortheme/highlights/editor.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/languages/ruby.lua (renamed from lua/mycolortheme/highlights/languages/ruby.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/plugins/blink.lua (renamed from lua/mycolortheme/highlights/plugins/blink.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/plugins/fzf.lua (renamed from lua/mycolortheme/highlights/plugins/fzf.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/plugins/mini.lua (renamed from lua/mycolortheme/highlights/plugins/mini.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/plugins/netrw.lua (renamed from lua/mycolortheme/highlights/plugins/netrw.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/syntax.lua (renamed from lua/mycolortheme/highlights/syntax.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/highlights/treesitter.lua (renamed from lua/mycolortheme/highlights/treesitter.lua) | 0 | ||||
| -rw-r--r-- | lua/voltage/init.lua (renamed from lua/mycolortheme/init.lua) | 30 |
9 files changed, 18 insertions, 12 deletions
diff --git a/lua/mycolortheme/highlights/editor.lua b/lua/voltage/highlights/editor.lua index b469e15..b469e15 100644 --- a/lua/mycolortheme/highlights/editor.lua +++ b/lua/voltage/highlights/editor.lua diff --git a/lua/mycolortheme/highlights/languages/ruby.lua b/lua/voltage/highlights/languages/ruby.lua index 04f5b14..04f5b14 100644 --- a/lua/mycolortheme/highlights/languages/ruby.lua +++ b/lua/voltage/highlights/languages/ruby.lua diff --git a/lua/mycolortheme/highlights/plugins/blink.lua b/lua/voltage/highlights/plugins/blink.lua index 3afd10f..3afd10f 100644 --- a/lua/mycolortheme/highlights/plugins/blink.lua +++ b/lua/voltage/highlights/plugins/blink.lua diff --git a/lua/mycolortheme/highlights/plugins/fzf.lua b/lua/voltage/highlights/plugins/fzf.lua index 80b2023..80b2023 100644 --- a/lua/mycolortheme/highlights/plugins/fzf.lua +++ b/lua/voltage/highlights/plugins/fzf.lua diff --git a/lua/mycolortheme/highlights/plugins/mini.lua b/lua/voltage/highlights/plugins/mini.lua index 431bfec..431bfec 100644 --- a/lua/mycolortheme/highlights/plugins/mini.lua +++ b/lua/voltage/highlights/plugins/mini.lua diff --git a/lua/mycolortheme/highlights/plugins/netrw.lua b/lua/voltage/highlights/plugins/netrw.lua index 4965cf5..4965cf5 100644 --- a/lua/mycolortheme/highlights/plugins/netrw.lua +++ b/lua/voltage/highlights/plugins/netrw.lua diff --git a/lua/mycolortheme/highlights/syntax.lua b/lua/voltage/highlights/syntax.lua index 1110521..1110521 100644 --- a/lua/mycolortheme/highlights/syntax.lua +++ b/lua/voltage/highlights/syntax.lua diff --git a/lua/mycolortheme/highlights/treesitter.lua b/lua/voltage/highlights/treesitter.lua index 491b2f2..491b2f2 100644 --- a/lua/mycolortheme/highlights/treesitter.lua +++ b/lua/voltage/highlights/treesitter.lua diff --git a/lua/mycolortheme/init.lua b/lua/voltage/init.lua index 09a7783..6b70223 100644 --- a/lua/mycolortheme/init.lua +++ b/lua/voltage/init.lua @@ -1,11 +1,17 @@ local M = {} -function M.setup(config) +M.config = { + accent = "blue" +} + +function M.setup(opts) + M.config = vim.tbl_deep_extend("force", M.config, opts or {}) + vim.cmd("highlight clear") vim.cmd("syntax reset") - vim.o.background = config.style - vim.g.colors_name = "my color theme" + vim.o.background = "dark" + vim.g.colors_name = "voltage" local colors = { bg = nil, @@ -50,26 +56,26 @@ function M.setup(config) } for _, highlight in ipairs({ "editor", "syntax", "treesitter" }) do - local mod = require("mycolortheme.highlights." .. highlight) + local mod = require("voltage.highlights." .. highlight) - for group, opts in pairs(mod.setup(colors, config)) do - vim.api.nvim_set_hl(0, group, opts) + for group, group_opts in pairs(mod.setup(colors, M.config)) do + vim.api.nvim_set_hl(0, group, group_opts) end end for _, highlight in ipairs({ "ruby" }) do - local mod = require("mycolortheme.highlights.languages." .. highlight) + local mod = require("voltage.highlights.languages." .. highlight) - for group, opts in pairs(mod.setup(colors, config)) do - vim.api.nvim_set_hl(0, group, opts) + for group, group_opts in pairs(mod.setup(colors, M.config)) do + vim.api.nvim_set_hl(0, group, group_opts) end end for _, highlight in ipairs({ "netrw", "fzf", "blink", "mini" }) do - local mod = require("mycolortheme.highlights.plugins." .. highlight) + local mod = require("voltage.highlights.plugins." .. highlight) - for group, opts in pairs(mod.setup(colors, config)) do - vim.api.nvim_set_hl(0, group, opts) + for group, group_opts in pairs(mod.setup(colors, M.config)) do + vim.api.nvim_set_hl(0, group, group_opts) end end end |
