1
Fork 0

Sketch out tempest neovim runtime

This commit is contained in:
Matei Adriel 2023-12-07 22:35:57 +01:00
parent a456fe3781
commit 659fb33ca7
No known key found for this signature in database
18 changed files with 783 additions and 390 deletions
home/features/neovim/config/ftplugin

View file

@ -6,28 +6,6 @@ require("my.abbreviations.math").setup()
vim.opt.conceallevel = 0
-- {{{ Older functions for calculating things inside vim
-- vim.keymap.set("n", "<leader>lg", function()
-- if not pcall(function()
-- local a = tonumber(vim.fn.input("A: "))
-- local b = tonumber(vim.fn.input("B: "))
--
-- local g, x, y = require("my.helpers.math.mod").gcd(a, b)
--
-- vim.fn.input("Result: " .. g .. " " .. x .. " " .. y)
-- end) then vim.fn.input("No results exist") end
-- end, { buffer = true, desc = "Gcd calculator" })
--
-- vim.keymap.set("n", "<leader>li", function()
-- if not pcall(function()
-- local class = tonumber(vim.fn.input("Mod class: "))
-- local num = tonumber(vim.fn.input("Number: "))
--
-- vim.fn.input("Result: " .. require("my.helpers.math.mod").modinverse(num, class))
-- end) then vim.fn.input("No results exist") end
-- end, { buffer = true, desc = "Mod inverse calculator" })
-- }}}
local abbreviations = {
-- Other fancy symvols
{ "tmat", "^T" }, -- Tranpose of a matrix