nvim: add render-markdown and table-mode
This commit is contained in:
parent
d8336829ee
commit
25ddac36b8
2 changed files with 54 additions and 0 deletions
30
pkgsets/nvim/render-markdown.nix
Normal file
30
pkgsets/nvim/render-markdown.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf (lib.elem "nvim::render-markdown" config.machine.pkgs) {
|
||||
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.pkgs);
|
||||
};
|
||||
};
|
||||
latex = {
|
||||
converter = "${pkgs.python3Packages.pylatexenc}/bin/latex2text";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue