Skip to content

Commit

Permalink
rearranging modules
Browse files Browse the repository at this point in the history
  • Loading branch information
clpi committed Dec 3, 2024
1 parent 0576cf2 commit b8a877e
Show file tree
Hide file tree
Showing 14 changed files with 836 additions and 639 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ lib/
**.DS_Store
**.idea/
**node_modules
ext/
**ext/
**.ropeproject/
**notes/
**note/
/luarocks
/lua_modules
/.luarocks
Expand Down
18 changes: 0 additions & 18 deletions .neoconf.json

This file was deleted.

File renamed without changes.
Empty file added doc/word-ui.txt
Empty file.
27 changes: 27 additions & 0 deletions lua/word/mod/edit/conceal/border.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local M = {}
M.data = {}
M.data.matrix = {
round = {
nw = "",
cw = "",
sw = "",

ne = "",
ce = "",
se = "",
},

bracket = {
nw = "",
cw = "",
ww = "",
sw = "",

ne = "",
ce = "",
ee = "",
se = "",
},
}

return M
150 changes: 150 additions & 0 deletions lua/word/mod/edit/conceal/chars.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
local M = {}
M.data = {}
M.data.sup = {
["+"] = "",
["-"] = "",
["="] = "",
["("] = "",
[")"] = "",
["n"] = "",
["0"] = "",
["1"] = "¹",
["2"] = "²",
["3"] = "³",
["4"] = "",
["5"] = "",
["6"] = "",
["7"] = "",
["8"] = "",
["9"] = "",
["i"] = "",
["j"] = "ʲ",
["w"] = "ʷ",
["T"] = "",
["A"] = "",
["B"] = "",
["D"] = "",
["E"] = "",
["G"] = "",
["H"] = "",
["I"] = "",
["J"] = "",
["K"] = "",
["L"] = "",
["M"] = "",
["N"] = "",
["O"] = "",
["P"] = "",
["R"] = "ᴿ",
["U"] = "",
["V"] = "",
["W"] = "",
}

M.data.sub = {
["+"] = "",
["-"] = "",
["="] = "",
["("] = "",
[")"] = "",
["a"] = "",
["e"] = "",
["o"] = "",
["x"] = "",
["ə"] = "",
["h"] = "",
["k"] = "",
["l"] = "",
["m"] = "",
["n"] = "",
["p"] = "",
["s"] = "",
["t"] = "",
["i"] = "",
["j"] = "",
["r"] = "",
["u"] = "",
["v"] = "",
["0"] = "",
["1"] = "",
["2"] = "",
["3"] = "",
["4"] = "",
["5"] = "",
["6"] = "",
["7"] = "",
["8"] = "",
["9"] = "",
}

M.data.sub = {
[" "] = " ",
["("] = "",
[")"] = "",

["0"] = "",
["1"] = "¹",
["2"] = "²",
["3"] = "³",
["4"] = "",
["5"] = "",
["6"] = "",
["7"] = "",
["8"] = "",
["9"] = "",

["a"] = "",
["b"] = "",
["c"] = "",
["d"] = "",
["e"] = "",
["f"] = "",
["g"] = "",
["h"] = "ʰ",
["i"] = "",
["j"] = "ʲ",
["k"] = "",
["l"] = "ˡ",
["m"] = "",
["n"] = "",
["o"] = "",
["p"] = "",
["q"] = nil,
["r"] = "ʳ",
["s"] = "ˢ",
["t"] = "",
["u"] = "",
["v"] = "",
["w"] = "ʷ",
["x"] = "ˣ",
["y"] = "ʸ",
["z"] = "",

["A"] = "",
["B"] = "",
["C"] = nil,
["D"] = "",
["E"] = "",
["F"] = nil,
["G"] = "",
["H"] = "",
["I"] = "",
["J"] = "",
["K"] = "",
["L"] = "",
["M"] = "",
["N"] = "",
["O"] = "",
["P"] = "",
["Q"] = nil,
["R"] = "ᴿ",
["S"] = nil,
["T"] = "",
["U"] = "",
["V"] = "",
["W"] = "",
["X"] = " ",
["Y"] = nil,
["Z"] = nil,
}
return M
94 changes: 7 additions & 87 deletions lua/word/mod/edit/conceal/init.lua
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
-- mkdnflow.nvim (Tools for personal markdown notebook navigation and management)
-- Copyright (C) 2022 Jake W. Vincent <https://github.com/jakewvincent>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <https://www.gnu.org/licenses/>.

local word = require("word")
local mod, config = word.mod, word.cfg
local M = mod.create("ui.conceal")
local M = mod.create("edit.conceal")
local fn, a, madd = vim.fn, vim.api, vim.fn.matchadd
M.chars = require("word.mod.edit.conceal.chars")
M.math = require("word.mod.edit.conceal.math")
M.border = require("word.mod.edit.conceal.border")

M.setup = function()
return {
Expand All @@ -26,79 +13,12 @@ M.setup = function()
}
end

M.data.math = M.math.data
M.data.border = M.border.data
M.data.chars = M.chars.data
M.config.public = {
link_style = "markdown",
}
M.data.sub = {
[" "] = " ",
["("] = "",
[")"] = "",

["0"] = "",
["1"] = "¹",
["2"] = "²",
["3"] = "³",
["4"] = "",
["5"] = "",
["6"] = "",
["7"] = "",
["8"] = "",
["9"] = "",

["a"] = "",
["b"] = "",
["c"] = "",
["d"] = "",
["e"] = "",
["f"] = "",
["g"] = "",
["h"] = "ʰ",
["i"] = "",
["j"] = "ʲ",
["k"] = "",
["l"] = "ˡ",
["m"] = "",
["n"] = "",
["o"] = "",
["p"] = "",
["q"] = nil,
["r"] = "ʳ",
["s"] = "ˢ",
["t"] = "",
["u"] = "",
["v"] = "",
["w"] = "ʷ",
["x"] = "ˣ",
["y"] = "ʸ",
["z"] = "",

["A"] = "",
["B"] = "",
["C"] = nil,
["D"] = "",
["E"] = "",
["F"] = nil,
["G"] = "",
["H"] = "",
["I"] = "",
["J"] = "",
["K"] = "",
["L"] = "",
["M"] = "",
["N"] = "",
["O"] = "",
["P"] = "",
["Q"] = nil,
["R"] = "ᴿ",
["S"] = nil,
["T"] = "",
["U"] = "",
["V"] = "",
["W"] = "",
["X"] = " ",
["Y"] = nil,
["Z"] = nil,
}
M.data.data.start_link_concealing = function()
if M.config.public == "markdown" then
madd(
Expand Down
Loading

0 comments on commit b8a877e

Please sign in to comment.