diff --git a/README.md b/README.md index c4262d2..3d4d7c0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ft = "markdown", config = function() au("Filetype", { - pattern = { "markdown", "typst" }, + pattern = { "markdown" }, callback = function() map({ "n", "x" }, "", require("mder").line, { buffer = 0 }) map("x", "", require("mder").codeblock, { buffer = 0 }) diff --git a/doc/mder.nvim.txt b/doc/mder.nvim.txt index 49f2ae6..30be368 100644 --- a/doc/mder.nvim.txt +++ b/doc/mder.nvim.txt @@ -3,26 +3,24 @@ ============================================================================== Table of Contents *mder.nvim-table-of-contents* - - install |mder.nvim-install| # -toggle-checkbox.nvim - -A Neovim plugin for checking and unchecking Markdown checkboxes, written in -Lua. - -Inspired by jkramer/vim-checkbox . - - -INSTALL *mder.nvim-install* - -use `lazy.nvim` +mder.nvim >lua { - "phanen/toggle-checkbox.nvim", + "phanen/mder.nvim", ft = "markdown", - keys = { { mode = { "n", "x" }, "", "lua require('toggle-checkbox').toggle()" }, }, - opts = {}, + config = function() + au("Filetype", { + pattern = { "markdown" }, + callback = function() + map({ "n", "x" }, "", require("mder").line, { buffer = 0 }) + map("x", "", require("mder").codeblock, { buffer = 0 }) + map("n", "o", require("mder").listdn, { expr = true, buffer = 0 }) + map("n", "O", require("mder").listup, { expr = true, buffer = 0 }) + end, + }) + end, }, <