mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Update 2025-02-14 Update 2025-02-16 Update 2025-02-21 Update 2025-02-23 Update 2025-02-25 Update 2025-02-27 Update 2025-02-28
144 lines
4.2 KiB
Lua
144 lines
4.2 KiB
Lua
return {
|
|
-- {
|
|
-- "nfrid/markdown-togglecheck",
|
|
-- dependencies = { "nfrid/treesitter-utils" },
|
|
-- ft = { "markdown" },
|
|
-- keys = {
|
|
-- {
|
|
-- "<C-space>",
|
|
-- function()
|
|
-- require("markdown-togglecheck").toggle()
|
|
-- end,
|
|
-- desc = "Toggle Checkmark",
|
|
-- ft = "markdown",
|
|
-- },
|
|
-- },
|
|
-- opts = {
|
|
-- -- create empty checkbox on item without any while toggling
|
|
-- create = true,
|
|
-- -- remove checked checkbox instead of unckecking it while toggling
|
|
-- remove = false,
|
|
-- },
|
|
-- },
|
|
{
|
|
"tadmccorkle/markdown.nvim",
|
|
ft = { "markdown" },
|
|
opts = {
|
|
-- Disable all keymaps by setting mappings field to 'false'.
|
|
-- Selectively disable keymaps by setting corresponding field to 'false'.
|
|
mappings = {
|
|
inline_surround_toggle = "gs", -- (string|boolean) toggle inline style
|
|
inline_surround_toggle_line = "gss", -- (string|boolean) line-wise toggle inline style
|
|
inline_surround_delete = "ds", -- (string|boolean) delete emphasis surrounding cursor
|
|
inline_surround_change = "cs", -- (string|boolean) change emphasis surrounding cursor
|
|
link_add = "gl", -- (string|boolean) add link
|
|
link_follow = "gx", -- (string|boolean) follow link
|
|
go_curr_heading = "]c", -- (string|boolean) set cursor to current section heading
|
|
go_parent_heading = "]p", -- (string|boolean) set cursor to parent section heading
|
|
go_next_heading = "]]", -- (string|boolean) set cursor to next section heading
|
|
go_prev_heading = "[[", -- (string|boolean) set cursor to previous section heading
|
|
},
|
|
inline_surround = {
|
|
-- For the emphasis, strong, strikethrough, and code fields:
|
|
-- * 'key': used to specify an inline style in toggle, delete, and change operations
|
|
-- * 'txt': text inserted when toggling or changing to the corresponding inline style
|
|
emphasis = {
|
|
key = "i",
|
|
txt = "*",
|
|
},
|
|
strong = {
|
|
key = "b",
|
|
txt = "**",
|
|
},
|
|
strikethrough = {
|
|
key = "s",
|
|
txt = "~~",
|
|
},
|
|
code = {
|
|
key = "c",
|
|
txt = "`",
|
|
},
|
|
},
|
|
link = {
|
|
paste = {
|
|
enable = true, -- whether to convert URLs to links on paste
|
|
},
|
|
},
|
|
toc = {
|
|
-- Comment text to flag headings/sections for omission in table of contents.
|
|
omit_heading = "toc omit heading",
|
|
omit_section = "toc omit section",
|
|
-- Cycling list markers to use in table of contents.
|
|
-- Use '.' and ')' for ordered lists.
|
|
markers = { "-" },
|
|
},
|
|
-- Hook functions allow for overriding or extending default behavior.
|
|
-- Called with a table of options and a fallback function with default behavior.
|
|
-- Signature: fun(opts: table, fallback: fun())
|
|
hooks = {
|
|
-- Called when following links. Provided the following options:
|
|
-- * 'dest' (string): the link destination
|
|
-- * 'use_default_app' (boolean|nil): whether to open the destination with default application
|
|
-- (refer to documentation on <Plug> mappings for explanation of when this option is used)
|
|
follow_link = nil,
|
|
},
|
|
on_attach = nil, -- (fun(bufnr: integer)) callback when plugin attaches to a buffer
|
|
},
|
|
},
|
|
{
|
|
"OXY2DEV/markview.nvim",
|
|
-- enabled = false,
|
|
lazy = false,
|
|
opts = {
|
|
preview = {
|
|
icon_provider = "mini",
|
|
hybrid_modes = { "i", "n" },
|
|
debounce = 50,
|
|
},
|
|
cursor_line = {
|
|
disable_rendering = true,
|
|
},
|
|
linewise_hybrid_mode = true,
|
|
markdown = {
|
|
enable = true,
|
|
math = {
|
|
engine = "typst", -- Use Typst engine for math rendering
|
|
inline = true, -- Enable for inline math
|
|
blocks = true, -- Enable for math blocks
|
|
},
|
|
},
|
|
latex = {
|
|
enable = false,
|
|
blocks = {
|
|
-- ["$$"] = {
|
|
-- renderer = "typst.math_blocks",
|
|
-- },
|
|
},
|
|
},
|
|
typst = { enable = false },
|
|
html = { enable = false },
|
|
checkboxes = {
|
|
default = " ",
|
|
remove_style = "checkbox",
|
|
states = {
|
|
{ " ", "/", "X" },
|
|
{ "<", ">" },
|
|
{ "?", "!", "*" },
|
|
{ '"' },
|
|
{ "l", "b", "i" },
|
|
{ "S", "I" },
|
|
{ "p", "c" },
|
|
{ "f", "k", "w" },
|
|
{ "u", "d" },
|
|
},
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("markview").setup(opts)
|
|
require("markview.extras.checkboxes").setup(opts.checkboxes)
|
|
require("markview.extras.headings").setup()
|
|
require("markview.extras.editor").setup()
|
|
end,
|
|
},
|
|
}
|