dotfiles/modules/programs/nvim/new_plugins/himalaya-vim.nix

24 lines
561 B
Nix
Raw Permalink Normal View History

2024-12-21 10:29:58 +01:00
{ config, lib, pkgs, inputs, ... }:
let
inherit (lib) mkEnableOption mkIf readFile;
in
{
home-manager.users.moritz.programs.nixvim = lib.mkIf config.my.programs.himalaya.enable {
extraPlugins = with pkgs.vimPlugins; [
# himalaya-vim
inputs.himalaya-vim.packages.${pkgs.system}.default
];
extraConfigLuaPost = ''
vim.g.himalaya_folder_picker = "telescope";
'';
autoCmd = [
{
command = "set modifiable";
event = [ "FileType" ];
pattern = [ "himalaya-email-listing" ];
}
];
};
}