Skip to content

Commit

Permalink
feat: NvimTree diagnostic highlight and new integrations (#373)
Browse files Browse the repository at this point in the history
* Add nvim tree diagnostic HL and edgy integration

* Grugfar integration
  • Loading branch information
BrunoKrugel authored Dec 31, 2024
1 parent 40943fc commit 5009bc4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ and then read `:h nvui.base46`
- Todo.nvim
- Nvim-treesitter
- Lsp Semantic tokens
- Trouble.nvim
- Trouble.nvim
- Whichkey.nvim
- git-conflict.nvim
- Orgmode
- diffview.nvim
- leap.nvim
- Edgy.nvim
- Grug-far.nvim

## Configuration

- Base46 is configured by [nvconfig](https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua) in your path.
- Base46 is configured by [nvconfig](https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua) in your path.
- Read the [themeing docs](https://nvchad.com/docs/config/theming)

## Highlight command
Expand All @@ -63,8 +65,8 @@ vim.api.nvim_set_hl(0, "Comment", {

There are 2 main tables used for `base46`

- `base_30` is used for general UI
- `base_16` is used for syntax highlighting
- `base_30` is used for general UI
- `base_16` is used for syntax highlighting
- Use a color lightening/darkening tool, such as this
https://imagecolorpicker.com/color-code

Expand Down Expand Up @@ -135,8 +137,8 @@ M.base_16 = {
}

-- OPTIONAL
-- overriding or adding highlights for this specific theme only
-- defaults/treesitter is the filename i.e integration there,
-- overriding or adding highlights for this specific theme only
-- defaults/treesitter is the filename i.e integration there,

M.polish_hl = {
defaults = {
Expand Down
9 changes: 9 additions & 0 deletions lua/base46/integrations/edgy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local colors = require("base46").get_theme_tb "base_30"

local highligths = {
EdgyNormal = { fg = colors.white },
EdgyWinBar = { fg = colors.white },
EdgyWinBarInactive = { fg = colors.white },
}

return highligths
7 changes: 7 additions & 0 deletions lua/base46/integrations/grug_far.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local highligths = {
GrugFarResultsMatch = { link = "DiffChange" },
GrugFarResultsMatchAdded = { link = "DiffAdd" },
GrugFarResultsMatchRemoved = { link = "DiffDelete" },
}

return highligths
8 changes: 8 additions & 0 deletions lua/base46/integrations/nvimtree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ return {
NvimTreeNormalNC = { bg = colors.darker_black },
NvimTreeOpenedFolderName = { fg = colors.folder_bg },
NvimTreeGitIgnored = { fg = colors.light_grey },
NvimTreeDiagnosticErrorFileHL = { link = "DiagnosticError" },
NvimTreeDiagnosticErrorFolderHL = { link = "DiagnosticError" },
NvimTreeDiagnosticInfoFileHL = { link = "DiagnosticNormal" },
NvimTreeDiagnosticInfoFolderHL = { link = "DiagnosticNormal" },
NvimTreeDiagnosticWarnFileHL = { link = "DiagnosticWarn" },
NvimTreeDiagnosticWarnFolderHL = { link = "DiagnosticWarn" },
NvimTreeDiagnosticHintFileHL = { link = "DiagnosticHint" },
NvimTreeDiagnosticHintFolderHL = { link = "DiagnosticHint" },

NvimTreeWinSeparator = {
fg = colors.darker_black,
Expand Down

0 comments on commit 5009bc4

Please sign in to comment.