Fp abbreviations, kicad and nvim keymap docs
This commit is contained in:
parent
1ed61054f7
commit
eaebbca5b3
17 changed files with 351 additions and 237 deletions
dotfiles/neovim/lua/my/abbreviations
31
dotfiles/neovim/lua/my/abbreviations/fp.lua
Normal file
31
dotfiles/neovim/lua/my/abbreviations/fp.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
local A = require("my.abbreviations")
|
||||
local scrap = require("scrap")
|
||||
local M = {}
|
||||
|
||||
M.symols = {
|
||||
{ "mto", ">>=" }, -- [M]onadic [t]o
|
||||
{ "oalt", "<\\|>" }, -- [O]peration [A]lternative
|
||||
{ "omono", "<>" }, -- [O]peration [M]onoid
|
||||
}
|
||||
|
||||
M.types = {
|
||||
{ "tarr", "Array" },
|
||||
{ "tlis", "List" },
|
||||
{ "tmay", "Maybe" },
|
||||
{ "teff", "Effect" },
|
||||
{ "taff", "Aff" },
|
||||
{ "tnea", "NonEmptyArray" },
|
||||
}
|
||||
|
||||
M.functions = {
|
||||
{ "tfold", "toUnfoldable" }, -- [T]o [f]oldable
|
||||
{ "ffold", "fromFoldable" }, -- [F]rom un[f]oldable
|
||||
}
|
||||
|
||||
function M.setup()
|
||||
A.manyGlobalAbbr(scrap.expand_many(M.types, A.no_capitalization))
|
||||
A.manyGlobalAbbr(scrap.expand_many(M.symols, A.no_capitalization))
|
||||
A.manyGlobalAbbr(scrap.expand_many(M.functions, A.no_capitalization))
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue