mirror of
https://github.com/isabelroses/nvim.git
synced 2025-04-09 13:29:34 +00:00
feat: use dev of markview for cool features
This commit is contained in:
parent
0caff8ff50
commit
719db3c67c
5 changed files with 24 additions and 11 deletions
8
_sources/generated.json
generated
8
_sources/generated.json
generated
|
@ -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,
|
||||
|
|
8
_sources/generated.nix
generated
8
_sources/generated.nix
generated
|
@ -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";
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue