feat: check if cmd extension can be loaded#2655
Merged
Merged
Conversation
As a last resort if no other cmd is found in `run_cmd`, check if the command can be loaded as an extension.
Member
|
thanks LGTM :) |
rameshsanth
pushed a commit
to rameshsanth/telescope.nvim
that referenced
this pull request
Nov 17, 2023
As a last resort if no other cmd is found in `run_cmd`, check if the command can be loaded as an extension.
delphinus
added a commit
to delphinus/possession.nvim
that referenced
this pull request
Jul 16, 2024
With this patch, you can call `:Telescope possession` when you have not called `telescope.load_extension()` before. See nvim-telescope/telescope.nvim#2655 NOTE: You still need to call `load_extension()` for calling `telescope.extensions.possession.list()` / `.possession().
delphinus
added a commit
to delphinus/possession.nvim
that referenced
this pull request
Jul 16, 2024
With this patch, you can call `:Telescope possession` when you have not called `telescope.load_extension()` before. See nvim-telescope/telescope.nvim#2655 NOTE: You still need to call `load_extension()` for calling `telescope.extensions.possession.list()` / `.possession()`.
jedrzejboczar
pushed a commit
to jedrzejboczar/possession.nvim
that referenced
this pull request
Jul 22, 2024
With this patch, you can call `:Telescope possession` when you have not called `telescope.load_extension()` before. See nvim-telescope/telescope.nvim#2655 NOTE: You still need to call `load_extension()` for calling `telescope.extensions.possession.list()` / `.possession()`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
As a last resort if no other cmd is found in
run_cmd, check if the command can be loaded as an extension.I know pcall is a bit hacky, but not needing to load every extension on startup is nice.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration
Install extension
telescope-frecency, but don't load it withload_extension. Then, run:Telescope frecency. Before this change, this would error. Now, the command runs as expected.