Skip to content

v6.0.4: metatable magic

Compare
Choose a tag to compare
@BirdeeHub BirdeeHub released this 13 Nov 14:00
· 115 commits to main since this release
0d9b264

Added metatables for nixCats plugin

require('nixCats')(cat) now does the same thing as the nixCats(cat) global

nixCats global now also has the other items from the require('nixCats') module

In fact, the nixCats global is now just _G.nixCats = require('nixCats')

nixCats.settings nixCats.pawsible nixCats.cats nixCats.petShop now can also be called as functions

They take the attrpath as an argument either as a list or a dot separated string, and return vim.tbl_get of the value

Corresponding updates to the luaUtils template have been made. The old version will still work but wont cover the new values when not on nix, so you will want to pull the luaUtils template again