aboutsummaryrefslogtreecommitdiff
path: root/lua/denote/util.lua
diff options
context:
space:
mode:
authorworkhorse <gravel.justness270@slmail.me>2024-06-03 16:47:42 -0400
committerworkhorse <gravel.justness270@slmail.me>2024-06-03 16:47:42 -0400
commit1bf7bc5b79636814db73a9148998c72fbe554d58 (patch)
tree726034d44493fa264a819a1089429eb0213e5593 /lua/denote/util.lua
parent6fe1f8d638bc3bfa52ff6433735f95a7eacbcba8 (diff)
downloadsimple-denote.nvim-1bf7bc5b79636814db73a9148998c72fbe554d58.tar.gz
Fixed heading config
Diffstat (limited to 'lua/denote/util.lua')
-rw-r--r--lua/denote/util.lua32
1 files changed, 0 insertions, 32 deletions
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