justinhj / battery.nvim

Neovim plugin to detect and view battery information
MIT License
59 stars 9 forks source link

question: is "bit" a module that everyone has? #33

Closed Agent-E11 closed 3 months ago

Agent-E11 commented 3 months ago

I noticed that in lua/util/file.lua, the module "bit" was required. Is this a module that everyone will have? I noticed that when running lua "raw", it is not available:

$ lua
> require"bit"
error: there was an error or something idk

But it works in Neovim's Lua interpreter:

:lua =require"bit"
{
  arshift = <function 1>,
  band = <function 2>,
  -- etc.
}

Is this included in Neovim?

Agent-E11 commented 3 months ago

I just found out: :help lua-bit