Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(leap): Backdrop option and better colors #42

Merged
merged 21 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/nordic/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ M.defaults = {
-- Available styles: `classic`, `flat`.
style = 'flat',
},
leap = {
-- Dims the backdrop when using leap.
dim_backdrop = false,
}
}

M.options = {}
Expand Down
17 changes: 12 additions & 5 deletions lua/nordic/groups/integrations/leap.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
local c = require 'nordic.colors'
local o = require 'nordic.config' .options

return {
local groups = {

LeapLabelPrimary = {
fg = c.red.bright,
bg = c.yellow.dim,
fg = c.black,
bold = true,
},

LeapBackdrop = {
fg = c.gray4,
},
}

if o.leap.dim_backdrop then
groups.LeapBackdrop = {
fg = c.gray4
}
end

return groups
2 changes: 2 additions & 0 deletions lua/nordic/tests/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ local load = require('nordic').load
load(config)

config.telescope.style = 'classic'
config.noice.style = 'classic'
config.bold_keywords = false
config.italic_comments = false
config.transparent_bg = true
config.cursorline.theme = 'light'
config.cursorline.bold = true
config.reduced_blue = false

load(config)