telescope: wrap setup code in do...end

This commit is contained in:
Pedro Alves 2022-08-27 01:47:52 +01:00
parent 4ff6dcb863
commit 3bb3b7efb5
2 changed files with 12 additions and 9 deletions

1
TODO.md Normal file
View file

@ -0,0 +1 @@
- Test if the config is actually being evaluated - this is easy to check by purposefully causing an error

View file

@ -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
'';
};
};