Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for rainbow-delimiters #459

Merged
merged 2 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions doc/nightfox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Note: If the resulting value of a template is a |nightfox-shade| then the
-- Value does not start with `#` so is treated as a template.
-- Since `magenta` is a `shade` object the `base` value will be used.
keyword = "magenta",

-- Adding either `.bright` or `.dim` will change the value
conditional = "magenta.bright",
number = "orange.dim",
Expand All @@ -178,22 +178,22 @@ Note: If the resulting value of a template is a |nightfox-shade| then the
}
}
}

-- Groups use specs as the template source
local groups = {
all = {
-- The template path is parsed to [`syntax`, `string`]. This is like calling into a lua table like:
-- `spec.syntax.string`.
String = { fg = "syntax.string" },

-- If `link` is defined it will be applied over any other values defined
Whitespace = { link = "Comment" }

-- Specs are used for the template. Specs have their palette's as a field that can be accessed
IncSearch = { bg = "palette.cyan" },
},
}

require('nightfox').setup({ specs = specs, groups = groups })
<

Expand Down Expand Up @@ -529,6 +529,7 @@ Current list of modules are:
- notify
- nvimtree
- pounce
- rainbow-delimiters
- signify
- sneak
- symbol_outline
Expand Down
1 change: 1 addition & 0 deletions lua/nightfox/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ M.module_names = {
"signify",
"sneak",
"symbol_outline",
"rainbow-delimiters",
"telescope",
"treesitter",
"tsrainbow",
Expand Down
20 changes: 20 additions & 0 deletions lua/nightfox/group/modules/rainbow-delimiters.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- https://github.com/HiPhish/rainbow-delimiters.nvim

local M = {}

function M.get(spec, config, opts)
local c = spec.palette

-- stylua: ignore
return {
RainbowDelimiterBlue = { fg = c.blue.base },
RainbowDelimiterCyan = { fg = c.cyan.base },
RainbowDelimiterGreen = { fg = c.green.base },
RainbowDelimiterOrange = { fg = c.orange.base },
RainbowDelimiterRed = { fg = c.red.base },
RainbowDelimiterPurple = { fg = c.magenta.base },
RainbowDelimiterYellow = { fg = c.yellow.base },
}
end

return M
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ There are a few things to note:
- [pounce.nvim](https://github.com/rlane/pounce.nvim)
- [vim-signify](https://github.com/mhinz/vim-signify)
- [vim-sneak](https://github.com/justinmk/vim-sneak)
- [rainbow-delimiters](https://github.com/hiphish/rainbow-delimiters.nvim)
- [symbols-outline.nvim](https://github.com/simrat39/symbols-outline.nvim)
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
- [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow)
Expand Down
1 change: 1 addition & 0 deletions usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ Current list of modules are:
- signify
- sneak
- symbol_outline
- rainbow-delimiters
- telescope
- treesitter
- tsrainbow
Expand Down
Loading