nixvim
nixvim copied to clipboard
plugins: standardise telescope extension assertions
Attempt to standardise how telescope extensions are enabled throughout the project.
- Use
mkIfoveroptional - Use
enabledExtensionsover manually callingload_extension - Use assertions over warnings when checking telescope is enabled
- Don't implicitly enable telescope
The commit message could probably be worded better, or split into multiple commits?
Some of this could be refactored into helper functions to improve maintenance?
Is the assertion for plugins.telescope.extensions.*.enable overkill? Will that assertion even run when plugins.telescope.enable = false?
I came across an auto enable behavior in todo-comments.nvim during testing a recent plugin.