2022-09-25 22:03:11 +02:00
|
|
|
local A = require("my.abbreviations")
|
2022-07-19 13:03:03 +02:00
|
|
|
|
|
|
|
-- Use vt to test
|
2022-12-27 14:02:03 +01:00
|
|
|
vim.keymap.set(
|
|
|
|
"n",
|
|
|
|
"<leader>vt",
|
|
|
|
':VimuxRunCommand "clear && spago test"<CR>',
|
|
|
|
{ desc = "[V]imtex run [t]ests", buffer = true }
|
|
|
|
)
|
2022-07-19 13:03:03 +02:00
|
|
|
|
|
|
|
-- Use vb to build
|
2022-12-27 14:02:03 +01:00
|
|
|
vim.keymap.set(
|
|
|
|
"n",
|
|
|
|
"<leader>vb",
|
|
|
|
':VimuxRunCommand "clear && spago build"<CR>',
|
|
|
|
{ desc = "[V]imtex [b]uild", buffer = true }
|
|
|
|
)
|
2022-07-19 13:03:03 +02:00
|
|
|
|
|
|
|
vim.opt.expandtab = true -- Use spaces for the tab char
|
2022-09-25 22:03:11 +02:00
|
|
|
|
|
|
|
local abbreviations = {
|
|
|
|
{ "land", "/\\" },
|
|
|
|
{ "lor", "\\/" },
|
|
|
|
{ "tto", "->" },
|
|
|
|
{ "iip", "=>" },
|
|
|
|
{ "frl", "forall" },
|
2022-12-27 14:02:03 +01:00
|
|
|
{ "ott", "<-" }, -- opposite of tto
|
2022-09-25 22:03:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
A.manyLocalAbbr(abbreviations)
|