From 8e59c4c27d665a93287777cec124f979e8fd378c Mon Sep 17 00:00:00 2001 From: KRLH Date: Thu, 21 Aug 2025 21:25:05 -0500 Subject: [PATCH] comment out disabler thingy --- lua/plugins/astrocore.lua | 25 ++++++++++++++++++++++++- spell/en.utf-8.add | 4 ++++ spell/en.utf-8.add.spl | Bin 0 -> 78 bytes 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 spell/en.utf-8.add create mode 100644 spell/en.utf-8.add.spl diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 729f4ac..39a84a3 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -1,4 +1,4 @@ -if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE +-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE -- AstroCore provides a central place to modify mappings, vim options, autocommands, and more! -- Configuration documentation can be found with `:h astrocore` @@ -76,6 +76,29 @@ return { desc = "Close buffer from tabline", }, + ["nz"] = { + function() + function Scandir(directory) + local i, t, popen = 0, {}, io.popen + local pfile = popen('ls -A "' .. directory .. '"') + for filename in pfile:lines() do + i = i + 1 + t[i] = '"' .. filename .. '"' + end + pfile:close() + return t + end + local ZK_DIR = os.getenv "ZK_NOTEBOOK_DIR" or "~/Desktop/notebooks/slipbox" + ZK_DIR = ZK_DIR .. "/.zk/templates" + local Template_List = Scandir(ZK_DIR) + vim.ui.select( + Template_List, + { prompt = "Template:" }, + function(str) vim.cmd("ZkNew {title = vim.fn.input('Title: '), template = " .. str .. "}") end + ) + end, + desc = "New zk slip", + }, -- tables with just a `desc` key will be registered with which-key if it's installed -- this is useful for naming menus -- ["b"] = { desc = "Buffers" }, diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add new file mode 100644 index 0000000..7b9e5ed --- /dev/null +++ b/spell/en.utf-8.add @@ -0,0 +1,4 @@ +slipbox +i've +memphis +we're diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl new file mode 100644 index 0000000000000000000000000000000000000000..d796ccee3715fd7fd34fb66559fa181b37848f31 GIT binary patch literal 78 zcmWIZ^erw(&B-zP&%nT-&61g0T+XP@SjL#j$iSG&n9Eqen8BFI$jHFJUCfxnn8{ec Vn8cV5=2tMLGOB}EoJ9;U006K54R!zk literal 0 HcmV?d00001