mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
telescope: wrap setup code in do...end
This commit is contained in:
parent
4ff6dcb863
commit
3bb3b7efb5
2 changed files with 12 additions and 9 deletions
1
TODO.md
Normal file
1
TODO.md
Normal file
|
@ -0,0 +1 @@
|
|||
- Test if the config is actually being evaluated - this is easy to check by purposefully causing an error
|
|
@ -50,6 +50,7 @@ in
|
|||
'';
|
||||
|
||||
extraConfigLua = ''
|
||||
do
|
||||
local __telescopeExtensions = ${helpers.toLuaObject cfg.enabledExtensions}
|
||||
|
||||
require('telescope').setup{
|
||||
|
@ -59,6 +60,7 @@ in
|
|||
for i, extension in ipairs(__telescopeExtensions) do
|
||||
require('telescope').load_extension(extension)
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue