mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 20:04:28 +02:00
parent
d8a86e9b3f
commit
c73bef16ab
61 changed files with 112 additions and 263 deletions
|
@ -1,8 +1,12 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.plugins.telescope;
|
||||
helpers = (import ../helpers.nix { inherit lib; });
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -18,11 +22,7 @@ in
|
|||
options.plugins.telescope = {
|
||||
enable = mkEnableOption "telescope.nvim";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.telescope-nvim;
|
||||
description = "Plugin to use for telescope.nvim";
|
||||
};
|
||||
package = helpers.mkPackageOption "telescope.nvim" pkgs.vimPlugins.telescope-nvim;
|
||||
|
||||
highlightTheme = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.telescope.extensions.frecency;
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
options.plugins.telescope.extensions.frecency = {
|
||||
enable = mkEnableOption "frecency";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.telescope-frecency-nvim;
|
||||
description = "Plugin to use for telescope frecency";
|
||||
};
|
||||
package = helpers.mkPackageOption "telescope extension frecency" pkgs.vimPlugins.telescope-frecency-nvim;
|
||||
|
||||
dbRoot = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.telescope.extensions.fzf-native;
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
options.plugins.telescope.extensions.fzf-native = {
|
||||
enable = mkEnableOption "Enable fzf-native";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.telescope-fzf-native-nvim;
|
||||
description = "Plugin to use for telescope extension fzf-native";
|
||||
};
|
||||
package = helpers.mkPackageOption "telescope extension fzf-native" pkgs.vimPlugins.telescope-fzf-native-nvim;
|
||||
|
||||
fuzzy = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.plugins.telescope.extensions.media_files;
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
options.plugins.telescope.extensions.media_files = {
|
||||
enable = mkEnableOption "Enable media_files extension for telescope";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.telescope-media-files-nvim;
|
||||
description = "Plugin to use for telescope extension media_files";
|
||||
};
|
||||
package = helpers.mkPackageOption "telescope extension media_files" pkgs.vimPlugins.telescope-media-files-nvim;
|
||||
|
||||
filetypes = mkOption {
|
||||
default = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue