Initial commit

This commit is contained in:
Marty Oehme 2020-10-26 15:55:40 +01:00
commit 86ab71b1d6
Signed by: Marty
GPG key ID: B7538B8F50A1C800
4 changed files with 67 additions and 0 deletions

26
lua/zettelkasten/init.lua Normal file
View file

@ -0,0 +1,26 @@
local ZK = {}
package.loaded['zettelkasten'] = nil
function ZK.init()
print(
vim.fn.nvim_win_get_width(0),
vim.fn.nvim_win_get_height(0)
)
end
-- entrypoint for pressing the zettel key when the cursor
-- is either on an existing link (it will then
-- follow it) or over text (it will then turn it into a
-- zettel link)
function ZK.zettel_link()
ZK._test()
end
function ZK._test()
print('follow_create_zettel')
end
return {
init = ZK.init,
zettel_link = ZK.zettel_link
}