mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 08:36:46 +00:00
21 lines
358 B
Nix
21 lines
358 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.vim.markdown.glow;
|
|
in {
|
|
config = (mkIf cfg.enable) {
|
|
vim.startPlugins = ["glow-nvim"];
|
|
vim.globals = {
|
|
"glow_binary_path" = "${pkgs.glow}/bin";
|
|
};
|
|
|
|
vim.configRC.glow = nvim.dag.entryAnywhere ''
|
|
autocmd FileType markdown noremap <leader>p :Glow<CR>
|
|
'';
|
|
};
|
|
}
|