Skip to content

Commit 187bce1

Browse files
committed
fix!: changed opt "italics" to "italic"
changed the option "italics" to "italic", as this aligns with the actual option of highlight groups. Should make more sense for those experienced with neovim highlights
1 parent 2b7f7cb commit 187bce1

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

lua/thorn/groups/base.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function M.get(c, opts)
55
return {
66
Foo = { bg = c.pink, fg = c.fg },
77

8-
Comment = { fg = c.green, italic = opts.styles.comments.italics, bold = opts.styles.comments.bold },
8+
Comment = { fg = c.green, italic = opts.styles.comments.italic, bold = opts.styles.comments.bold },
99
ColorColumn = { bg = c.bg_float },
1010
Conceal = { fg = c.green },
1111
Cursor = { fg = c.bg, bg = c.fg },
@@ -82,12 +82,12 @@ function M.get(c, opts)
8282
Identifier = { fg = c.lightblue },
8383
Italic = { italic = true, fg = c.fg },
8484
Include = "Keyword",
85-
Keyword = { fg = c.orange, italic = opts.styles.keywords.italics, bold = opts.styles.keywords.bold },
85+
Keyword = { fg = c.orange, italic = opts.styles.keywords.italic, bold = opts.styles.keywords.bold },
8686
Operator = { fg = c.red },
8787
PreProc = { fg = c.green1 },
8888
Special = { fg = c.green1 },
8989
Statement = { fg = c.orange },
90-
String = { fg = c.lightgreen, italic = opts.styles.strings.italics, bold = opts.styles.strings.bold }, -- left off here
90+
String = { fg = c.lightgreen, italic = opts.styles.strings.italic, bold = opts.styles.strings.bold }, -- left off here
9191
Todo = { bg = c.yellow, fg = c.bg },
9292
Type = { fg = c.cyan },
9393
Underlined = { underline = true },

lua/thorn/groups/treesitter.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ function M.get(c, opts)
1010
["@character.printf"] = "SpecialChar",
1111
["@character.special"] = "SpecialChar",
1212
["@comment"] = "Comment",
13-
["@comment.error"] = { fg = c.red1, italic = opts.styles.comments.italics },
14-
["@comment.hint"] = { fg = c.blue, italic = opts.styles.comments.italics },
15-
["@comment.info"] = { fg = c.cyan0, italic = opts.styles.comments.italics },
16-
["@comment.note"] = { fg = c.green1, italic = opts.styles.comments.italics },
17-
["@comment.todo"] = { fg = c.blue0, italic = opts.styles.comments.italics },
18-
["@comment.warning"] = { fg = c.yellow, italic = opts.styles.comments.italics },
13+
["@comment.error"] = { fg = c.red1, italic = opts.styles.comments.italic },
14+
["@comment.hint"] = { fg = c.blue, italic = opts.styles.comments.italic },
15+
["@comment.info"] = { fg = c.cyan0, italic = opts.styles.comments.italic },
16+
["@comment.note"] = { fg = c.green1, italic = opts.styles.comments.italic },
17+
["@comment.todo"] = { fg = c.blue0, italic = opts.styles.comments.italic },
18+
["@comment.warning"] = { fg = c.yellow, italic = opts.styles.comments.italic },
1919
["@constant"] = "Constant",
2020
["@constant.builtin"] = "Constant",
2121
["@constant.macro"] = "Constant",

lua/thorn/init.lua

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ M.version = "1.4.3" -- x-release-please-version
33

44
-- stylua: ignore
55
M.default = {
6-
theme = nil, -- light or dark
7-
background = "warm",
6+
theme = nil, -- 'light' or 'dark' - defaults to vim.o.background if unset
7+
background = "warm", -- options are 'warm' and 'cold'
8+
9+
transparent = false, -- transparent background
10+
terminal = true, -- terminal colors
811

912
styles = {
10-
keywords = { italics = true, bold = false },
11-
comments = { italics = true, bold = false },
12-
strings = { italics = true, bold = false },
13+
keywords = { italic = true, bold = false },
14+
comments = { italic = true, bold = false },
15+
strings = { italic = true, bold = false },
1316

1417
diagnostic = {
1518
underline = true, -- if true, flat underlines will be used. Otherwise, undercurls will be used
@@ -22,8 +25,6 @@ M.default = {
2225
},
2326
},
2427

25-
transparent = false, -- transparent background
26-
2728
on_highlights = function(hl, palette) end, -- apply your own highlights
2829
}
2930

0 commit comments

Comments
 (0)