Skip to content

Commit

Permalink
feat(render-markdown): add
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-ie committed Jan 6, 2025
1 parent ae429e6 commit 8a42b15
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
./ollama.nix
# ./orgmode.nix
# ./org-roam-nvim.nix # buggy as hell
./render-markdown.nix
./tabscope.nix
./telescope
./treesitter.nix
Expand Down
39 changes: 39 additions & 0 deletions config/plugins/render-markdown.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
_: {
config = {
# https://nix-community.github.io/nixvim/plugins/render-markdown
# https://github.com/MeanderingProgrammer/render-markdown.nvim
plugins.render-markdown = {
enable = true;
settings = {
sign.enabled = false;
heading.border = true;
# heading.border_virtual = true;
heading.position = "inline";
pipe_table.preset = "round";
};
};
highlight =
let
headerBg = "#200030";
headerFg = "#9a5feb";
in
{
# Prevent colors from changing when switching between editing
# and concealing
RenderMarkdownBullet.fg = "#E07153";
RenderMarkdownCode.bg = "#200020";
RenderMarkdownH1Bg.bg = headerBg;
RenderMarkdownH2Bg.bg = headerBg;
RenderMarkdownH3Bg.bg = headerBg;
RenderMarkdownH4Bg.bg = headerBg;
RenderMarkdownH5Bg.bg = headerBg;
RenderMarkdownH6Bg.bg = headerBg;
RenderMarkdownH1Bg.fg = headerFg;
RenderMarkdownH2Bg.fg = headerFg;
RenderMarkdownH3Bg.fg = headerFg;
RenderMarkdownH4Bg.fg = headerFg;
RenderMarkdownH5Bg.fg = headerFg;
RenderMarkdownH6Bg.fg = headerFg;
};
};
}

0 comments on commit 8a42b15

Please sign in to comment.