Skip to content

Commit 5472a3e

Browse files
authored
feat(modules): add indent_blankline (#347)
* feat(modules): add indent_blankline
1 parent a53ff3f commit 5472a3e

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

doc/nightfox.txt

+11
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ table that contains the additional configuration as well as a field called
497497
Current list of modules are:
498498

499499

500+
- alpha
500501
- aerial
501502
- barbar
502503
- cmp
@@ -511,6 +512,8 @@ Current list of modules are:
511512
- glyph_palette
512513
- hop
513514
- illuminate
515+
- indent_blanklines
516+
- leap
514517
- lightspeed
515518
- lsp_saga
516519
- lsp_trouble
@@ -576,6 +579,14 @@ modules.native_lsp This module sets highlight groups from
576579
│background│boolean│true │Set virtual text background color│
577580

578581

582+
*nightfox-modules.leap*
583+
584+
│ key │ type │ default │ description │
585+
│enable │boolean│true │Enable the module to be included │
586+
│background│boolean│true │Sets the label color to the background│
587+
│harsh │boolean│false │Sets label’s contrast to be harsher │
588+
589+
579590
COLOR *nightfox-color*
580591

581592
Nightfox exposes a color utility library to help with manipulating colors. This

lua/nightfox/config.lua

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ M.module_names = {
7676
"glyph_palette",
7777
"hop",
7878
"illuminate",
79+
"indent_blankline",
7980
"leap",
8081
"lightspeed",
8182
"lsp_saga",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
local M = {}
2+
3+
function M.get(spec, config, opts)
4+
local c = spec.palette
5+
return {
6+
IndentBlanklineChar = { fg = spec.bg3 },
7+
IndentBlanklineContextChar = { fg = spec.syntax.variable },
8+
IndentBlanklineContextStart = { sp = spec.syntax.variable, underline = true },
9+
IndentBlanklineIndent6 = { blend = 0, fg = c.yellow.base },
10+
IndentBlanklineIndent5 = { blend = 0, fg = c.red.base },
11+
IndentBlanklineIndent4 = { blend = 0, fg = c.cyan.base },
12+
IndentBlanklineIndent3 = { blend = 0, fg = c.orange.base },
13+
IndentBlanklineIndent2 = { blend = 0, fg = c.blue.base },
14+
IndentBlanklineIndent1 = { blend = 0, fg = c.pink.base },
15+
}
16+
end
17+
18+
return M

readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ There are a few things to note:
528528
- [lightspeed.nvim](https://github.com/ggandor/lightspeed.nvim)
529529
- [lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim)
530530
- [lsp-trouble.nvim](https://github.com/simrat39/lsp-trouble.nvim)
531+
- [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
531532
- [mini.nvim](https://github.com/echasnovski/mini.nvim)
532533
- [modes.nvim](https://github.com/mvllow/modes.nvim)
533534
- [nvim-navic](https://github.com/SmiteshP/nvim-navic)

usage.md

+1
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ Current list of modules are:
404404
- glyph_palette
405405
- hop
406406
- illuminate
407+
- indent_blanklines
407408
- leap
408409
- lightspeed
409410
- lsp_saga

0 commit comments

Comments
 (0)