diff options
author | Louie S <louie@example.com> | 2024-07-03 17:31:38 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-07-03 17:31:38 -0400 |
commit | 622dfd0c308958b0a11acc801b485e5558ec4bde (patch) | |
tree | f9288b4cababa401902a933ac4f3195a7ddc2597 /lua | |
parent | f3c40bfdf890d7a363ce54df4c690a9b69676185 (diff) |
Set default colorscheme to sorbet for 0.10
Diffstat (limited to 'lua')
-rw-r--r-- | lua/user/colorscheme.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua index 0e4ac03..3adc395 100644 --- a/lua/user/colorscheme.lua +++ b/lua/user/colorscheme.lua @@ -1,7 +1,11 @@ local gui = false -- set to true if guicolors should be on by default local function colorscheme_set() - local colorscheme = "patch_0.10_legacy_slate" + local colorscheme = "sorbet" + + if not (vim.fn.has("nvim-0.10") == 1) then + colorscheme = "legacy_slate" + end if gui then colorscheme = "slate" @@ -26,6 +30,7 @@ local function colorscheme_set() -- TODO fix FIXME highlight -- Change some gui colors + vim.cmd("highlight LineNr ctermfg=lightyellow") vim.cmd("highlight LineNr guifg=yellow3") vim.cmd("highlight Comment guifg=yellow3") vim.cmd("highlight Todo guibg=blue") |