feat(languages: move markdown and tidal to languages module)

This commit is contained in:
NotAShelf 2023-04-18 00:38:57 +03:00
commit fdca3b1e7e
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
17 changed files with 56 additions and 111 deletions

View file

@ -0,0 +1,24 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.languages.markdown;
in {
config = mkIf cfg.enable (mkMerge [
(mkIf cfg.glow.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>
'';
})
]);
}