nvim: Fix accessing t_Co
With neovim/neovim#13479 merged, window option needs to be used for accessing t_Co correctly.
This commit is contained in:
parent
fbce78c346
commit
72e3b80274
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ local _TYPE_TABLE = 'table'
|
|||
|
||||
-- Determine which set of colors to use.
|
||||
local _USE_HEX = vim.o.termguicolors
|
||||
local _USE_256 = tonumber(vim.o.t_Co) > 255
|
||||
local _USE_256 = tonumber(vim.wo.t_Co) > 255
|
||||
or string.find(vim.env.TERM, '256')
|
||||
|
||||
--[[
|
||||
|
|
Loading…
Reference in a new issue