diff --git a/doc/nightfox.txt b/doc/nightfox.txt index ec8e282c..a4b4d534 100644 --- a/doc/nightfox.txt +++ b/doc/nightfox.txt @@ -497,6 +497,7 @@ table that contains the additional configuration as well as a field called Current list of modules are: +- alpha - aerial - barbar - cmp @@ -511,6 +512,8 @@ Current list of modules are: - glyph_palette - hop - illuminate +- indent_blanklines +- leap - lightspeed - lsp_saga - lsp_trouble @@ -576,6 +579,14 @@ modules.native_lsp This module sets highlight groups from │background│boolean│true │Set virtual text background color│ + *nightfox-modules.leap* + +│ key │ type │ default │ description │ +│enable │boolean│true │Enable the module to be included │ +│background│boolean│true │Sets the label color to the background│ +│harsh │boolean│false │Sets label’s contrast to be harsher │ + + COLOR *nightfox-color* Nightfox exposes a color utility library to help with manipulating colors. This diff --git a/lua/nightfox/config.lua b/lua/nightfox/config.lua index 913c2034..be99cdca 100644 --- a/lua/nightfox/config.lua +++ b/lua/nightfox/config.lua @@ -76,6 +76,7 @@ M.module_names = { "glyph_palette", "hop", "illuminate", + "indent_blankline", "leap", "lightspeed", "lsp_saga", diff --git a/lua/nightfox/group/modules/indent_blankline.lua b/lua/nightfox/group/modules/indent_blankline.lua new file mode 100644 index 00000000..d1150081 --- /dev/null +++ b/lua/nightfox/group/modules/indent_blankline.lua @@ -0,0 +1,18 @@ +local M = {} + +function M.get(spec, config, opts) + local c = spec.palette + return { + IndentBlanklineChar = { fg = spec.bg3 }, + IndentBlanklineContextChar = { fg = spec.syntax.variable }, + IndentBlanklineContextStart = { sp = spec.syntax.variable, underline = true }, + IndentBlanklineIndent6 = { blend = 0, fg = c.yellow.base }, + IndentBlanklineIndent5 = { blend = 0, fg = c.red.base }, + IndentBlanklineIndent4 = { blend = 0, fg = c.cyan.base }, + IndentBlanklineIndent3 = { blend = 0, fg = c.orange.base }, + IndentBlanklineIndent2 = { blend = 0, fg = c.blue.base }, + IndentBlanklineIndent1 = { blend = 0, fg = c.pink.base }, + } +end + +return M diff --git a/readme.md b/readme.md index 076640aa..0b9a4526 100644 --- a/readme.md +++ b/readme.md @@ -528,6 +528,7 @@ There are a few things to note: - [lightspeed.nvim](https://github.com/ggandor/lightspeed.nvim) - [lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim) - [lsp-trouble.nvim](https://github.com/simrat39/lsp-trouble.nvim) +- [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) - [mini.nvim](https://github.com/echasnovski/mini.nvim) - [modes.nvim](https://github.com/mvllow/modes.nvim) - [nvim-navic](https://github.com/SmiteshP/nvim-navic) diff --git a/usage.md b/usage.md index b2486427..3f0e5d4f 100644 --- a/usage.md +++ b/usage.md @@ -404,6 +404,7 @@ Current list of modules are: - glyph_palette - hop - illuminate +- indent_blanklines - leap - lightspeed - lsp_saga