Skip to content

Commit 11de71c

Browse files
committed
Fix config/nvim/lua/theme.lua deprecations
1 parent 68baf02 commit 11de71c

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

config/nvim/lua/theme.lua

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
require("github-theme").setup({
2-
function_style = "italic",
3-
sidebars = {"qf", "vista_kind", "terminal", "packer"},
2+
options = {
3+
function_style = "italic",
4+
sidebars = {"qf", "vista_kind", "terminal", "packer"},
45

5-
-- Change the "hint" color to the "orange" color, and make the "error" color bright red
6-
colors = {hint = "orange", error = "#ff0000"},
6+
-- Change the "hint" color to the "orange" color, and make the "error" color bright red
7+
colors = {hint = "orange", error = "#ff0000"},
78

8-
vim.cmd('colorscheme github_dark'),
9-
-- Overwrite the highlight groups
10-
overrides = function(c)
11-
return {
12-
htmlTag = {fg = c.red, bg = "#282c34", sp = c.hint, style = "underline"},
13-
DiagnosticHint = {link = "LspDiagnosticsDefaultHint"},
14-
-- this will remove the highlight groups
15-
TSField = {},
16-
}
17-
end
9+
vim.cmd('colorscheme github_dark'),
10+
-- Overwrite the highlight groups
11+
overrides = function(c)
12+
return {
13+
htmlTag = {fg = c.red, bg = "#282c34", sp = c.hint, style = "underline"},
14+
DiagnosticHint = {link = "LspDiagnosticsDefaultHint"},
15+
-- this will remove the highlight groups
16+
TSField = {},
17+
}
18+
end
19+
}
1820
})

0 commit comments

Comments
 (0)