From 0873b5b241e4f5b340bd8d89ef6d2b52e7c2fa97 Mon Sep 17 00:00:00 2001 From: Shawon Date: Sun, 12 Jan 2025 18:45:41 +0600 Subject: [PATCH] chore: Removed unnecessary codes. Ref: #177 --- lua/markview/spec.lua | 1 + lua/markview/symbols.lua | 18 +----------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/lua/markview/spec.lua b/lua/markview/spec.lua index 9039d01..5791d9b 100644 --- a/lua/markview/spec.lua +++ b/lua/markview/spec.lua @@ -2114,6 +2114,7 @@ spec.default = { ---_ }, + math_spans = { ---+${lua} diff --git a/lua/markview/symbols.lua b/lua/markview/symbols.lua index 681eb86..4aa4121 100644 --- a/lua/markview/symbols.lua +++ b/lua/markview/symbols.lua @@ -3339,7 +3339,7 @@ symbols.typst_shorthands = { ["arrow.l.r.double.long"] = "<==>", ["arrow.l.r.long"] = "<->", ---_ -} +}; symbols.fonts = { ---+${clqss} @@ -4330,20 +4330,4 @@ symbols.tostring = function (font, text) return _o; end - --- vim.api.nvim_set_keymap("n", "x", "", { --- callback = function () --- local c = vim.api.nvim_win_get_cursor(0); --- local ln = vim.api.nvim_buf_get_lines(0, c[1] - 1, c[1], false)[1]; --- vim.print(ln) --- --- for hex in ln:gmatch("(%d+)") do --- ln = ln:gsub(hex, vim.fn.nr2char(hex)); --- end --- --- vim.api.nvim_buf_set_lines(0, c[1] - 1, c[1], false, { ln }); --- end}) --- --- vim.print(symbols.tostring("mathtt", " zwsp")) - return symbols;