1
Fork 0

Enable abbreviations by default

This commit is contained in:
Matei Adriel 2023-12-23 01:29:08 +01:00
parent 85ebcee9ba
commit 74f2ea1e2c
No known key found for this signature in database
3 changed files with 11 additions and 10 deletions

View file

@ -4,17 +4,17 @@ local M = {}
-- {{{ Ascii -- {{{ Ascii
M.ascii = { M.ascii = {
{ "tto", "->" }, -- [t]o { "tto", "->" }, -- [t]o
{ "ffrom", "<-" }, -- [f]rom { "ffrom", "<-" }, -- [f]rom
{ "iip", "=>" }, -- [i]t [i]m[p]lies { "iip", "=>" }, -- [i]t [i]m[p]lies
{ "iib", "<=" }, -- [i]t's [i]mplied [b]ly { "iib", "<=" }, -- [i]t's [i]mplied [b]ly
{ "leq", "<=" }, -- [l]ess than or [e][q]ual { "leq", "<=" }, -- [l]ess than or [e][q]ual
{ "geq", ">=" }, -- [g]reater than or [e][q]ual { "geq", ">=" }, -- [g]reater than or [e][q]ual
{ "seq", "=" }, -- [s]ingle [e][q]ual { "seq", "=" }, -- [s]ingle [e][q]ual
{ "deq", "==" }, -- [d]ouble [e][q]ual { "deq", "==" }, -- [d]ouble [e][q]ual
{ "land", "/\\" }, -- [l]ogial [a][n][d] { "land", "/\\" }, -- [l]ogial [a][n][d]
{ "lor", "\\/" }, -- [l]ogial [o][r] { "lor", "\\/" }, -- [l]ogial [o][r]
} }
-- }}} -- }}}

View file

@ -5,6 +5,7 @@ function M.setup()
require("my.options").setup() require("my.options").setup()
require("my.keymaps").setup() require("my.keymaps").setup()
require("my.lazy").setup() require("my.lazy").setup()
require("my.abbreviations").setup()
end end
return M return M

View file

@ -579,7 +579,7 @@ in
package = e.nullOr e.string; package = e.nullOr e.string;
dir = assert propXor "package" "dir" opts; e.nullOr e.string; dir = assert propXor "package" "dir" opts; e.nullOr e.string;
tag = assert propImplies "tag" "package" opts; e.nullOr e.string; tag = assert propImplies "tag" "package" opts; e.nullOr e.string;
version = assert propImplies "tag" "package" opts; e.nullOr e.string; version = assert propImplies "version" "package" opts; e.nullOr e.string;
name = e.nullOr e.string; name = e.nullOr e.string;
main = e.nullOr e.string; main = e.nullOr e.string;
dependencies = e.map (d: d.lua) (e.tryNonemptyList (e.stringOr lazyObjectEncoder)); dependencies = e.map (d: d.lua) (e.tryNonemptyList (e.stringOr lazyObjectEncoder));