comment out disabler thingy
This commit is contained in:
parent
8634a6dc79
commit
8e59c4c27d
3 changed files with 28 additions and 1 deletions
|
|
@ -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",
|
||||
},
|
||||
|
||||
["<leader>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
|
||||
-- ["<Leader>b"] = { desc = "Buffers" },
|
||||
|
|
|
|||
4
spell/en.utf-8.add
Normal file
4
spell/en.utf-8.add
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
slipbox
|
||||
i've
|
||||
memphis
|
||||
we're
|
||||
BIN
spell/en.utf-8.add.spl
Normal file
BIN
spell/en.utf-8.add.spl
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue