added back zk

This commit is contained in:
Solomon Laing 2022-12-11 09:27:25 +10:30
parent 58c434af81
commit 87921c606a
4 changed files with 17 additions and 0 deletions

View File

@ -38,4 +38,5 @@ require "user.cybu" -- cycle through current buffers
require "user.dap" -- debugging require "user.dap" -- debugging
require "user.lspsaga" -- bit overkill, using for code action menu require "user.lspsaga" -- bit overkill, using for code action menu
require "user.neogen" require "user.neogen"
require "user.zk"
-- require "user.noice" -- fun with new ui -- require "user.noice" -- fun with new ui

View File

@ -156,6 +156,9 @@ return packer.startup(function(use)
use("tpope/vim-surround") use("tpope/vim-surround")
use("danymat/neogen") use("danymat/neogen")
-- Notes
use("mickael-menu/zk-nvim")
-- Keybinding -- Keybinding
use("folke/which-key.nvim") use("folke/which-key.nvim")

View File

@ -241,6 +241,13 @@ local mappings = {
p = { "<cmd>TSPlaygroundToggle<cr>", "Playground" }, p = { "<cmd>TSPlaygroundToggle<cr>", "Playground" },
r = { "<cmd>TSToggle rainbow<cr>", "Rainbow" }, r = { "<cmd>TSToggle rainbow<cr>", "Rainbow" },
}, },
N = {
name = "Notes (zk)",
n = { "<cmd>ZkNew<cr>", "New Note" },
e = { "<cmd>ZkNotes<cr>", "Edit Notes" },
t = { "<cmd>ZkTags<cr>", "Edit Related Notes" },
},
} }
local vopts = { local vopts = {

View File

@ -0,0 +1,6 @@
local s_ok, zk = pcall(require, "zk")
if not s_ok then
return
end
zk.setup()