From 1bf7bc5b79636814db73a9148998c72fbe554d58 Mon Sep 17 00:00:00 2001 From: workhorse Date: Mon, 3 Jun 2024 16:47:42 -0400 Subject: Fixed heading config --- lua/denote/util.lua | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 lua/denote/util.lua (limited to 'lua/denote/util.lua') diff --git a/lua/denote/util.lua b/lua/denote/util.lua deleted file mode 100644 index 643e2e7..0000000 --- a/lua/denote/util.lua +++ /dev/null @@ -1,32 +0,0 @@ -local M = {} - - -function M.splitspace(str) - local chunks = {} - for substring in str:gmatch("%S+") do - table.insert(chunks, #chunks, substring) - end - return chunks -end - -function M.splitstring(str, delim) - local items = {} - local fulldelim = nil - if delim == "." or delim == "-" then - fulldelim = "%" .. delim - else - fulldelim = delim - end - str = str .. delim - for w in str:gmatch("(.-)" .. fulldelim) do - items[#items + 1] = w - end - return items -end - ---- Escape a string to use as a lua pattern -function M.escape(str) - return str:gsub("(%W)", "%%%1") -end - -return M -- cgit v1.2.3