Initial commit
This commit is contained in:
commit
86ab71b1d6
4 changed files with 67 additions and 0 deletions
26
lua/zettelkasten/init.lua
Normal file
26
lua/zettelkasten/init.lua
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue