summary refs log tree commit diff
path: root/.vim/after/ftplugin/markdown.lua
blob: 1b299e21e515de490a67523c03de584b1b6a09c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require('spell')
vim.opt.foldlevel = 1

-- vim.fn.matchadd('Conceal', '\\[ \\]', 0, -1, { conceal = '☐' })
-- vim.fn.matchadd('Conceal', '\\[x\\]', 0, -1, { conceal = '☑' })
-- vim.fn.matchadd('Conceal', '\\[-\\]', 0, -1, { conceal = '☒' })
-- vim.fn.matchadd('Conceal', '\\[\\]', 0, -1, { conceal = '🞕' })

vim.keymap.set('n', '<Plug>Markdown_OpenUrlUnderCursor',
  function() require('misc').open_under_cursor('url-launcher') end,
)

vim.keymap.set('n', '<localleader>l', require('misc').link_preview, {desc='link preview'})

-- vim.keymap.set('n', '<leader>zn', function() require('zk').new() end)
-- vim.keymap.set('n', '<leader>zi', function() require('zk').index() end)
-- vim.cmd [[ command! -nargs=* ZettelkastenNew lua require('zk').new(nil, <f-args>) ]]

vim.keymap.set('n', 'gt', function()
  require('telescope._extensions.todo-comments').exports.todo {cwd=vim.env.ZK_NOTEBOOK_DIR}
end, {desc='show zk todos'})