summary refs log tree commit diff
path: root/.vim/after/ftplugin/markdown.lua
blob: 373b79e65c1c8dbc107e9bcb9165d303cf3fd623 (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',
  '<leader>l',
  function() require('misc').link_preview() end
)

-- 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>) ]]