forked from norcalli/nvim-base16.lua
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: save base_30 variables to file
now users can directly access the color variables outside of hl_add/hl_override, dofile(vim.g.base46_cache .. "colors")
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local opts = require("nvconfig").base46 | ||
local str = "" | ||
local colors = require("base46.themes." .. opts.theme).base_30 | ||
|
||
for name, hex in pairs(colors) do | ||
str = str .. name .. "='" .. hex | ||
str = str .. "'," | ||
end | ||
|
||
str = "return {" .. str .. "}" | ||
|
||
return str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e9d2562
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.