Skip to content

Commit

Permalink
feat(modules): add indent_blankline (#347)
Browse files Browse the repository at this point in the history
* feat(modules): add indent_blankline
  • Loading branch information
nullchilly committed May 11, 2023
1 parent a53ff3f commit 5472a3e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/nightfox.txt
Expand Up @@ -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
Expand All @@ -511,6 +512,8 @@ Current list of modules are:
- glyph_palette
- hop
- illuminate
- indent_blanklines
- leap
- lightspeed
- lsp_saga
- lsp_trouble
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lua/nightfox/config.lua
Expand Up @@ -76,6 +76,7 @@ M.module_names = {
"glyph_palette",
"hop",
"illuminate",
"indent_blankline",
"leap",
"lightspeed",
"lsp_saga",
Expand Down
18 changes: 18 additions & 0 deletions 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
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions usage.md
Expand Up @@ -404,6 +404,7 @@ Current list of modules are:
- glyph_palette
- hop
- illuminate
- indent_blanklines
- leap
- lightspeed
- lsp_saga
Expand Down

0 comments on commit 5472a3e

Please sign in to comment.