project-nvim: init plugin (#55)

This commit is contained in:
Alexander Nortung 2022-10-25 01:15:09 +02:00 committed by GitHub
parent f0ad4cd2ec
commit 9658aaf990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 107 additions and 0 deletions

View file

@ -10,6 +10,7 @@ in
./fzf-native.nix
./fzy-native.nix
./media-files.nix
./project-nvim.nix
];
# TODO:add support for aditional filetypes. This requires autocommands!

View file

@ -0,0 +1,15 @@
{ pkgs, config, lib, ...}:
with lib;
let
cfg = config.plugins.telescope.extensions.project-nvim;
in
{
options.plugins.telescope.extensions.project-nvim = {
enable = mkEnableOption "Enable project-nvim telescope extension";
};
config = mkIf cfg.enable {
plugins.telescope.enabledExtensions = [ "projects" ];
};
}