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:
Sanchayan Maity 2021-05-29 13:03:31 +05:30
parent fbce78c346
commit 72e3b80274
1 changed files with 1 additions and 1 deletions

View File

@ -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')
--[[