feat: use dev of markview for cool features

This commit is contained in:
isabel 2024-10-05 12:18:51 +01:00
parent 0caff8ff50
commit 719db3c67c
No known key found for this signature in database
GPG key ID: 08A97B9A107A1798
5 changed files with 24 additions and 11 deletions

View file

@ -541,7 +541,7 @@
},
"markview": {
"cargoLocks": null,
"date": "2024-09-10",
"date": "2024-10-05",
"extract": null,
"name": "markview",
"passthru": null,
@ -553,11 +553,11 @@
"name": null,
"owner": "OXY2DEV",
"repo": "markview.nvim",
"rev": "f16486e49561740f33b6773df43c9bc2c3c34c7b",
"sha256": "sha256-kfHpFGC0QyqdvIZVymdWTuORH/YXW0wey01OvCKttyE=",
"rev": "9f7ff72827e9a7d12f2662c9430245c02f3cc6f1",
"sha256": "sha256-rihJ+lFvAeCklZuWHTv8nv1yBDfOWrEsxQ01JWujDA8=",
"type": "github"
},
"version": "f16486e49561740f33b6773df43c9bc2c3c34c7b"
"version": "9f7ff72827e9a7d12f2662c9430245c02f3cc6f1"
},
"neocord": {
"cargoLocks": null,

View file

@ -327,15 +327,15 @@
};
markview = {
pname = "markview";
version = "f16486e49561740f33b6773df43c9bc2c3c34c7b";
version = "9f7ff72827e9a7d12f2662c9430245c02f3cc6f1";
src = fetchFromGitHub {
owner = "OXY2DEV";
repo = "markview.nvim";
rev = "f16486e49561740f33b6773df43c9bc2c3c34c7b";
rev = "9f7ff72827e9a7d12f2662c9430245c02f3cc6f1";
fetchSubmodules = false;
sha256 = "sha256-kfHpFGC0QyqdvIZVymdWTuORH/YXW0wey01OvCKttyE=";
sha256 = "sha256-rihJ+lFvAeCklZuWHTv8nv1yBDfOWrEsxQ01JWujDA8=";
};
date = "2024-09-10";
date = "2024-10-05";
};
neocord = {
pname = "neocord";

View file

@ -111,6 +111,7 @@ src.git = "https://github.com/L3MON4D3/LuaSnip"
[markview]
fetch.github = "OXY2DEV/markview.nvim"
src.git = "https://github.com/OXY2DEV/markview.nvim"
src.branch = "dev"
[neocord]
fetch.github = "IogaMaster/neocord"

View file

@ -29,7 +29,7 @@ rec {
markview = {
src = srcs.markview;
config = ./markview.lua;
event = "BufRead *.md";
lazy = false; # it handles lazy loading itself
dependencies = {
inherit nvim-web-devicons;
};

View file

@ -1,8 +1,20 @@
return function()
local p = require("markview.presets")
require("markview").setup({
headings = {
shift_width = 0,
-- 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,
},
headings = p.headings.glow,
checkboxes = p.checkboxes.nerd,
horizontal_rules = p.horizontal_rules.thin,
code_blocks = {
pad_amount = 1,
},