Refactored nvim config to make it easier and less insanely nested
This commit is contained in:
12
.config/nvim/lua/plugins/markdown-toggle.lua
Normal file
12
.config/nvim/lua/plugins/markdown-toggle.lua
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user