mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 20:25:08 +02:00
telescope-frecency: add options
This commit is contained in:
parent
3d1df5f16a
commit
96685934d7
2 changed files with 57 additions and 2 deletions
|
@ -25,6 +25,12 @@ in
|
|||
description = "A list of enabled extensions. Don't use this directly";
|
||||
default = [];
|
||||
};
|
||||
|
||||
extensionConfig = mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
description = "Configuration for the extensions. Don't use this directly";
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -44,7 +50,9 @@ in
|
|||
extraConfigLua = ''
|
||||
local __telescopeExtensions = ${helpers.toLuaObject cfg.enabledExtensions}
|
||||
|
||||
require('telescope').setup{}
|
||||
require('telescope').setup{
|
||||
extensions = ${helpers.toLuaObject cfg.extensionConfig}
|
||||
}
|
||||
|
||||
for i, extension in ipairs(__telescopeExtensions) do
|
||||
require('telescope').load_extension(extension)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue