Skip to content

Commit df9251f

Browse files
committed
feat(plugins): add nvcheatsheet.nvim support
1 parent 48a4253 commit df9251f

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ term.foreground
246246
| [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) | `neo-tree` |
247247
| [neogit](https://github.com/NeogitOrg/neogit) | `neogit` |
248248
| [noice.nvim](https://github.com/folke/noice.nvim) | `noice` |
249+
| [nvcheatsheet.nvim](https://github.com/smartinellimarco/nvcheatsheet.nvim) | `nvcheatsheet` |
249250
| [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) | `nvim-cmp` |
250251
| [nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui) | `nvim-dap-ui` |
251252
| [nvim-notify](https://github.com/rcarriga/nvim-notify) | `nvim-notify` |

lua/astrotheme/groups/plugins/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ return {
1414
["neo-tree.nvim"] = "neo-tree",
1515
["neogit"] = "neogit",
1616
["noice.nvim"] = "noice",
17+
["nvcheatsheet.nvim"] = "nvcheatsheet",
1718
["nvim-cmp"] = "nvim-cmp",
1819
["nvim-dap-ui"] = "nvim-dap-ui",
1920
["nvim-notify"] = "nvim-notify",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---@type AstroThemeCallback
2+
local function callback(opts)
3+
return {
4+
NvChAsciiHeader = { bg = opts.transparent and C.none or C.ui.base, fg = C.ui.title }, -- Title
5+
NvChSection = { bg = C.ui.highlight }, -- Each card
6+
7+
-- Colors for the headers
8+
NvCheatsheetWhite = { bg = C.ui.text_match, fg = C.ui.base },
9+
NvCheatsheetGray = { bg = C.ui.text, fg = C.ui.base },
10+
NvCheatsheetBlue = { bg = C.ui.blue, fg = C.ui.base },
11+
NvCheatsheetCyan = { bg = C.ui.cyan, fg = C.ui.base },
12+
NvCheatsheetRed = { bg = C.ui.red, fg = C.ui.base },
13+
NvCheatsheetGreen = { bg = C.ui.green, fg = C.ui.base },
14+
NvCheatsheetYellow = { bg = C.ui.yellow, fg = C.ui.base },
15+
NvCheatsheetOrange = { bg = C.ui.orange, fg = C.ui.base },
16+
NvCheatsheetPurple = { bg = C.ui.purple, fg = C.ui.base },
17+
NvCheatsheetMagenta = { bg = C.syntax.purple, fg = C.ui.base },
18+
}
19+
end
20+
21+
return callback

0 commit comments

Comments
 (0)