services: nvim remove duplicate render-markdown plugin
This commit is contained in:
parent
15cb1af8ac
commit
6615f5c13d
2 changed files with 11 additions and 32 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf (lib.elem "nvim::render-markdown" config.machine.services) {
|
||||
programs.nvim-lazy.lazyPlugins = [
|
||||
{
|
||||
dir = vPlug: vPlug.render-markdown-nvim;
|
||||
dependencies = (
|
||||
vPlug: with vPlug; [
|
||||
nvim-web-devicons
|
||||
"nvim-treesitter"
|
||||
]
|
||||
);
|
||||
opts = {
|
||||
completions = {
|
||||
blink = {
|
||||
enabled = (lib.elem "nvim::blink" config.machine.services);
|
||||
};
|
||||
};
|
||||
latex = {
|
||||
converter = "${pkgs.python3Packages.pylatexenc}/bin/latex2text";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue