Skip to content

Commit

Permalink
feat(nvim): add zk keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Sep 6, 2023
1 parent c6b0989 commit 551d9e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/neovim/config/lua/user/zk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ require("zk").setup({
},
},
})

local opts = { noremap = true, silent = true }
local keymap = vim.keymap.set
keymap("n", "<leader>n", ":ZkNew<CR>", opts)
keymap("n", "<c-p>", ":ZkNotes<CR>", opts)
keymap("n", "<C-i>", ":ZkInsertLink<CR>", opts)
keymap("n", "<leader>lt", ":ZkTags<CR>", opts)
keymap("n", "<leader>ot", ":e `zk jp`<CR>", opts)

0 comments on commit 551d9e5

Please sign in to comment.