diff options
| author | 2024-07-24 22:10:02 +0200 | |
|---|---|---|
| committer | 2024-07-24 22:10:02 +0200 | |
| commit | 991091228f9e403015edd0106ccfc3a0ce62e304 (patch) | |
| tree | 44aa6357e395766f1a340fee08aea546ae69c16c /dot_config/nvim/lua/toast/table.lua | |
| parent | nvim: add empty? and update group (diff) | |
nvim: continue fennel porting
Yeah I'm lazy but these are my dotfiles.
A quick summary:
* plugins.lsp.attach is now ported
* toast.core is reorganized
* new nil? and number? checks
* new assoc function
* new toast.table.unpack function (cross lua compat)
* toast.macros.tbl now uses assoc instead of from-pairs and group
* apparently I had forgotten to add {pre,post,init}.fnl before, so
that's done now
Still todo: ftplugin, colors.
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/lua/toast/table.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dot_config/nvim/lua/toast/table.lua b/dot_config/nvim/lua/toast/table.lua index b2633a2..a898a5e 100644 --- a/dot_config/nvim/lua/toast/table.lua +++ b/dot_config/nvim/lua/toast/table.lua @@ -13,4 +13,5 @@ local function insert(t, ...) table.insert(t, ...) return t end -return {["from-pairs"] = from_pairs, insert = insert} +local unpack = (table.unpack or unpack) +return {["from-pairs"] = from_pairs, insert = insert, unpack = unpack} |
