mirror of
https://github.com/isabelroses/nvim.git
synced 2025-04-09 13:29:34 +00:00
refactor(mardown/markview.nvim): conform to new apis
This commit is contained in:
parent
09265daaa5
commit
9e7b7f4381
1 changed files with 23 additions and 19 deletions
|
@ -7,27 +7,31 @@ return {
|
|||
|
||||
require("markview").setup({
|
||||
-- allows us to use hybrid mode
|
||||
modes = { "n", "i", "no", "c" },
|
||||
hybrid_modes = { "i" },
|
||||
callbacks = {
|
||||
on_enable = function(_, win)
|
||||
vim.wo[win].conceallevel = 2
|
||||
vim.wo[win].concealcursor = "nc"
|
||||
end,
|
||||
preview = {
|
||||
modes = { "n", "i", "no", "c" },
|
||||
hybrid_modes = { "i" },
|
||||
callbacks = {
|
||||
on_enable = function(_, win)
|
||||
vim.wo[win].conceallevel = 2
|
||||
vim.wo[win].concealcursor = "nc"
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
headings = p.headings.glow,
|
||||
checkboxes = p.checkboxes.nerd,
|
||||
horizontal_rules = p.horizontal_rules.thin,
|
||||
code_blocks = {
|
||||
pad_amount = 1,
|
||||
},
|
||||
list_items = {
|
||||
-- indent_size = 0,
|
||||
marker_minus = { add_padding = false },
|
||||
marker_plus = { add_padding = false },
|
||||
marker_star = { add_padding = false },
|
||||
marker_dot = { add_padding = false },
|
||||
markdown = {
|
||||
headings = p.headings.glow,
|
||||
checkboxes = p.checkboxes.nerd,
|
||||
horizontal_rules = p.horizontal_rules.thin,
|
||||
code_blocks = {
|
||||
pad_amount = 1,
|
||||
},
|
||||
list_items = {
|
||||
-- indent_size = 0,
|
||||
marker_minus = { add_padding = false },
|
||||
marker_plus = { add_padding = false },
|
||||
marker_star = { add_padding = false },
|
||||
marker_dot = { add_padding = false },
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
|
Loading…
Add table
Reference in a new issue