jayli / vim-easycomplete

杭州市余杭区最好用的 VIM/NVIM 代码补全插件
MIT License
404 stars 26 forks source link

bugfix. nvim_set_hl cannot recognize numeric ctermfg val in string type #268

Closed feishiheng closed 7 months ago

feishiheng commented 7 months ago

image 在我的WSL环境上安装vim-easycomplete插件后,遇到了如下错误提示,调试后发现是由于vim.api.nvim_set_hl接口无法识别字符串类型的ctermfg数值. image image 于是对easycomplete#ui#GetHiColor接口的返回值进行修改,当匹配到ctermfg的值为全数字时,返回数值类型的值,修改后,不再报错,且调试输出符合预期 image

jayli commented 7 months ago

感谢修复,已经合并

jayli commented 7 months ago

我优化了下代码,你更新下看看

https://github.com/jayli/vim-easycomplete/commit/afc5f2d9fc830352624032aa80c8732deb5df84d

feishiheng commented 7 months ago

好的,感谢