1
Fork 0

A bunch of changes, mostly to neovim

- global abbreviations
- better firenvim setup
- magma.nvim (never used it, might unisntall)
This commit is contained in:
Matei Adriel 2023-02-19 02:41:22 +01:00
parent d573e17a00
commit bf7427d8c7
No known key found for this signature in database
11 changed files with 125 additions and 21 deletions
dotfiles/neovim/ftplugin

View file

@ -60,6 +60,7 @@ local abbreviations = {
{ "iin", "\\in" },
{ "tto", "\\to" },
{ "iip", "\\implies" },
{ "iib", "\\impliedby" },
{ "iff", "\\iff" },
{ "land", "\\land" },
{ "lor", "\\lor" },
@ -117,6 +118,9 @@ local abolishAbbreviations = {
{ "dete{,s}", "determinant{}" },
{ "ort{n,g}", "orto{normal,gonal}" },
{ "l{in,de}", "linearly {independent,dependent}" },
{ "lcon{,s}", "linear combination{}" },
{ "vsm", "\\vecspace" }, -- math vector space
{ "vst{,s}", "vector space{,s}" }, -- text vector space
-- Graph theory
{ "vx{,s}", "vert{ex,ices}" },
@ -210,12 +214,9 @@ local abolishAbbreviations = {
local expanded = scrap.expand_many(abolishAbbreviations)
-- print("Expanded")
A.manyLocalAbbr(abbreviations)
A.manyLocalAbbr(expanded)
print(#expanded .. " abbreviations")
vim.keymap.set(
"n",
"<leader>lc",