summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-03-14 20:27:50 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-03-14 20:27:50 +0100
commit0cf858e14aa98218c4aec92011bded80e935549b (patch)
treeb25aedbd11a6496801ea8d1a89a5f1df6841fa4e
parent667d51fd990d52f7ba80d9f76baa217dd79c6b11 (diff)
Add option to configure match_paren
-rw-r--r--README.md7
-rw-r--r--lua/no-clown-fiesta/groups/highlights.lua6
-rw-r--r--lua/no-clown-fiesta/settings.lua7
3 files changed, 13 insertions, 7 deletions
diff --git a/README.md b/README.md
index c58f393..2bff77b 100644
--- a/README.md
+++ b/README.md
@@ -26,11 +26,12 @@ require("no-clown-fiesta").setup({
styles = {
-- You can set any of the style values specified for `:h nvim_set_hl`
comments = {},
- keywords = {},
functions = {},
- variables = {},
- type = { bold = true },
+ keywords = {},
lsp = { underline = true }
+ match_paren = {},
+ type = { bold = true },
+ variables = {},
},
})
```
diff --git a/lua/no-clown-fiesta/groups/highlights.lua b/lua/no-clown-fiesta/groups/highlights.lua
index 1cfb328..65d1ca0 100644
--- a/lua/no-clown-fiesta/groups/highlights.lua
+++ b/lua/no-clown-fiesta/groups/highlights.lua
@@ -60,7 +60,11 @@ function M.highlight(palette, opts)
PmenuSbar = { bg = palette.alt_bg },
PmenuThumb = { bg = palette.light_gray },
MatchWord = { underline = true },
- MatchParen = { fg = palette.blue, bg = palette.bg, underline = true },
+ MatchParen = vim.tbl_extend(
+ "force",
+ { fg = palette.blue, bg = palette.bg, underline = true },
+ opts.styles.match_paren
+ ),
MatchWordCur = { underline = true },
MatchParenCur = { underline = true },
Cursor = { fg = palette.cursor_fg, bg = palette.cursor_bg },
diff --git a/lua/no-clown-fiesta/settings.lua b/lua/no-clown-fiesta/settings.lua
index 827a80c..dc95a76 100644
--- a/lua/no-clown-fiesta/settings.lua
+++ b/lua/no-clown-fiesta/settings.lua
@@ -4,11 +4,12 @@ local DEFAULT = {
transparent = false,
styles = {
comments = {},
- keywords = {},
functions = {},
- variables = {},
- type = { bold = true },
+ keywords = {},
lsp = { underline = true },
+ match_paren = {},
+ type = { bold = true },
+ variables = {},
},
}