services: nvim remove duplicate render-markdown plugin

This commit is contained in:
Kevin Baensch 2025-07-12 13:03:43 +02:00
parent 15cb1af8ac
commit 6615f5c13d
Signed by: derped
GPG key ID: C0F1D326C7626543
2 changed files with 11 additions and 32 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
pkgs,
...
}:
lib.mkIf (lib.elem "nvim::render-markdown-nvim" config.machine.services) {
programs.nvim-lazy = {
@ -8,13 +13,14 @@ lib.mkIf (lib.elem "nvim::render-markdown-nvim" config.machine.services) {
cmd = [ "RenderMarkdown" ];
dir = vPlug: vPlug.render-markdown-nvim;
ft = [
"hurl"
"markdown"
"vimwiki"
];
dependencies =
vPlug: with vPlug; [
nvim-web-devicons
"nvim-treesitter"
nvim-web-devicons
];
opts = {
completions = {
@ -22,6 +28,9 @@ lib.mkIf (lib.elem "nvim::render-markdown-nvim" config.machine.services) {
enabled = true;
};
};
latex = {
converter = "${pkgs.python3Packages.pylatexenc}/bin/latex2text";
};
};
}
];