sontungexpt / sttusline

A very lightweight, super fast and lazyloading statusline plugin for Neovim written in lua.
MIT License
107 stars 7 forks source link

`vim.loop` is deprecated #7

Closed orumin closed 8 months ago

orumin commented 8 months ago

vim.loop is replaced with vim.uv in newer version. see https://github.com/neovim/neovim/pull/22846

orumin commented 8 months ago

to support both older and newer version, do as below:

local uv = vim.uv or vim.loop
local uname = uv.os_uname()
...
sontungexpt commented 8 months ago

to support both older and newer version, do as below:

local uv = vim.uv or vim.loop
local uname = uv.os_uname()
...

Thanks for your reminding