feat: added a plugin to toggle markdown bullets/checkmarks

This commit is contained in:
Kyren223
2024-09-20 00:54:02 +03:00
parent e8c2a647c4
commit 54e90dfb99
2 changed files with 13 additions and 1 deletions

View File

@@ -5,7 +5,6 @@
"auto-save.nvim": { "branch": "main", "commit": "5fe9ab0c42f0457f2a973e814a6352b8eeb04730" },
"auto-session": { "branch": "main", "commit": "51e26935e3cc5c46b7dd93f3762a803540ff3581" },
"buffer_manager.nvim": { "branch": "main", "commit": "fd36131b2b3e0f03fd6353ae2ffc88cf920b3bbb" },
"bullets.vim": { "branch": "master", "commit": "2253f970e54320dbd76fd6bb4f5a0bf2436ce232" },
"ccc.nvim": { "branch": "main", "commit": "790aa881d7f47bc7cc07ad03f1216bb7caf9ef67" },
"clangd_extensions.nvim": { "branch": "main", "commit": "385a44f133f4145e3a3da1a2a557225dccc3e1f8" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
@@ -26,6 +25,7 @@
"lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },
"lspsaga.nvim": { "branch": "main", "commit": "b0e73faba0a5cd9b96789dc7fbe44e57b23998b9" },
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
"markdown-toggle.nvim": { "branch": "main", "commit": "e6bcb3e1a0321016cce98ebd32dec0fe0a7ee318" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },

View File

@@ -0,0 +1,12 @@
return {
'roodolv/markdown-toggle.nvim',
event = 'VeryLazy',
config = function()
require('markdown-toggle').setup()
local opts = { silent = true, noremap = true }
local toggle = require('markdown-toggle')
vim.keymap.set({ 'n', 'x' }, '<leader>tu', toggle.list, opts)
vim.keymap.set({ 'n', 'x' }, '<leader>to', toggle.olist, opts)
vim.keymap.set({ 'n', 'x' }, '<leader>tm', toggle.checkbox, opts)
end,
}