Auto commit: 2024-11-07 18:54:54
This commit is contained in:
parent
fe34f614e8
commit
7aef350e9e
6 changed files with 106 additions and 71 deletions
28
.config/nvim/lua/plugins/markdown.lua
Normal file
28
.config/nvim/lua/plugins/markdown.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
local function retmap()
|
||||
local m = {
|
||||
inline_surround_toggle = "<leader>mm", -- (string|boolean) toggle inline style
|
||||
inline_surround_toggle_line = "<leader>mmm", -- (string|boolean) line-wise toggle inline style
|
||||
inline_surround_delete = "<leader>md", -- (string|boolean) delete emphasis surrounding cursor
|
||||
inline_surround_change = "<leader>mc", -- (string|boolean) change emphasis surrounding cursor
|
||||
link_add = "<leader>ml", -- (string|boolean) add link
|
||||
link_follow = "<leader>mx", -- (string|boolean) follow link
|
||||
go_curr_heading = "<leader>mp",
|
||||
go_parent_heading = "<leader>mP",
|
||||
go_next_heading = "<M-n>",
|
||||
go_prev_heading = "<M-e>",
|
||||
}
|
||||
require("which-key").add({
|
||||
{ "<leader>m", group = "Markdown" },
|
||||
})
|
||||
return m
|
||||
end
|
||||
local opts = {
|
||||
mappings = retmap(),
|
||||
}
|
||||
local spec = {
|
||||
"tadmccorkle/markdown.nvim",
|
||||
ft = "markdown",
|
||||
opts = opts,
|
||||
}
|
||||
|
||||
return spec
|
Loading…
Add table
Add a link
Reference in a new issue