Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott c7f1772d65 update 2024-05-20 12:02:36 +01:00
Ray Elliott 54641988db fix no t_Co option error 2024-05-20 12:02:25 +01:00
2 changed files with 5 additions and 10 deletions

View File

@ -847,15 +847,8 @@ local highlight_groups = {
IndentGuidesOdd = {bg = c_bg_hl}, IndentGuidesOdd = {bg = c_bg_hl},
IndentGuidesEven = {bg = c_bg_hl_strong}, IndentGuidesEven = {bg = c_bg_hl_strong},
--[[ 4.4.7. NERDTree ]] --[[ 4.4.7. Netrw ]]
NERDTreeCWD = 'Label', netrwMarkFile = 'Search',
NERDTreeUp = 'Operator',
NERDTreeDir = 'Directory',
NERDTreeDirSlash = 'Delimiter',
NERDTreeOpenable = 'NERDTreeDir',
NERDTreeClosable = 'NERDTreeOpenable',
NERDTreeExecFile = 'Function',
NERDTreeLinkTarget = 'Tag',
--[[ 4.4.8. nvim-treesitter ]] --[[ 4.4.8. nvim-treesitter ]]
TSConstBuiltin = 'Constant', TSConstBuiltin = 'Constant',

View File

@ -7,7 +7,9 @@
--[[/* VARS */]] --[[/* VARS */]]
--- Which set of colors to use. --- Which set of colors to use.
local _USE_256 = tonumber(vim.go.t_Co) > 255 or string.find(vim.env.TERM, '256') local has_t_Co = pcall(function() return vim.go.t_Co end)
local _USE_256 = (has_t_Co and tonumber(vim.go.t_Co) > 255) or string.find(vim.env.TERM, '256')
--- Indicating nothing for a highlight field. --- Indicating nothing for a highlight field.
local _NONE = 'NONE' local _NONE = 'NONE'