call ddu#start(#{ sources: [#{ name: 'outline' }] })Note
Can search outline by Japanease when with use ddu-filter-kensaku.
call ddc#custom#patch_global({
\ "outline": {
\ 'matchers': ['matcher_kensaku'],
\ }}Place the cursor over a code block and press <leader>er to execute the code block.
vim.api.nvim_create_autocmd("BufEnter", {
pattern = {"*.md", "*.markdown"},
callback = function ()
vim.keymap.set("n", "<leader>er", "<cmd>call morg#run()<CR>")
end
})morg#context_codeblock(...)
Returns the language and code string of the code block under the cursor. If the cursor is not in a code block, -1 is returned.
morg#run()
Run Quickrun with the code obtained with morg#context_codeblock.
morg#tangle_all()
Returns a string that converts all code blocks in the file into a single string.
morg#tangle_block(...)
This is equivalent to call morg#context_codeblock().src.
# Check
deno check *.ts
# Format
deno fmt- Move remarkParse to
deps.ts.
MIT