Skip to content

Commit

Permalink
feat: add support for rainbow-delimiters (#459)
Browse files Browse the repository at this point in the history
* feat: add support for rainbow-delimiters
  • Loading branch information
Silzinc authored Dec 29, 2024
1 parent 7557f26 commit 4463a37
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
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

0 comments on commit 4463a37

Please sign in to comment.