initial commit
This commit is contained in:
commit
8c7f4fbf37
21 changed files with 715 additions and 0 deletions
34
lua/plugins/zk-nvim.lua
Normal file
34
lua/plugins/zk-nvim.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
{'zk-org/zk-nvim', name = 'zk', lazy = false,
|
||||
config = function ()
|
||||
require('zk').setup({
|
||||
picker = 'snacks_picker',
|
||||
|
||||
lsp = {
|
||||
config = {
|
||||
cmd = { "zk", "lsp" },
|
||||
name = "zk",
|
||||
},
|
||||
|
||||
auto_attach = {
|
||||
enabled = true,
|
||||
filetypes = { 'markdown' },
|
||||
}
|
||||
}
|
||||
})
|
||||
local zk = require("zk")
|
||||
local commands = require("zk.commands")
|
||||
|
||||
local function make_edit_fn(defaults, picker_options)
|
||||
return function(options)
|
||||
options = vim.tbl_extend("force", defaults, options or {})
|
||||
zk.edit(options, picker_options)
|
||||
end
|
||||
end
|
||||
|
||||
commands.add("ZkOrphans", make_edit_fn({ orphan = true }, { title = "Zk Orphans" }))
|
||||
commands.add("ZkRecents", make_edit_fn({ createdAfter = "2 weeks ago" }, { title = "Zk Recents" }))
|
||||
|
||||
end,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue