1
Fork 0
satellite/dotfiles/neovim/ftplugin/purescript.lua

26 lines
631 B
Lua
Raw Normal View History

2022-07-19 13:03:03 +02:00
local arpeggio = require("my.plugins.arpeggio")
2022-09-25 22:03:11 +02:00
local A = require("my.abbreviations")
2022-07-19 13:03:03 +02:00
2022-09-26 02:17:39 +02:00
print("Initializing purescript keybinds...")
2022-07-19 20:19:36 +02:00
2022-07-19 13:03:03 +02:00
-- Use vt to test
arpeggio.chordSilent("n", "vt", ":VimuxRunCommand \"clear && spago test\"<CR>",
2022-07-19 20:19:36 +02:00
{ settings = "b" })
2022-07-19 13:03:03 +02:00
-- Use vb to build
arpeggio.chordSilent("n", "vb", ":VimuxRunCommand \"clear && spago build\"<CR>",
2022-07-19 20:19:36 +02:00
{ settings = "b" })
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" },
{ "ott", "<-" } -- opposite of tto
}
A.manyLocalAbbr(abbreviations)