plugins/telescope: add ast-grep extension
This commit is contained in:
parent
e49b8deda7
commit
5736a24082
3 changed files with 28 additions and 0 deletions
8
plugins/by-name/telescope/extensions/ast-grep.nix
Normal file
8
plugins/by-name/telescope/extensions/ast-grep.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
let
|
||||
mkExtension = import ./_mk-extension.nix;
|
||||
in
|
||||
mkExtension {
|
||||
name = "ast-grep";
|
||||
extensionName = "ast_grep";
|
||||
package = "telescope-ast-grep-nvim";
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./advanced-git-search.nix
|
||||
./ast-grep.nix
|
||||
./file-browser.nix
|
||||
./frecency.nix
|
||||
./fzf-native.nix
|
||||
|
|
|
|||
19
tests/test-sources/plugins/by-name/telescope/ast-grep.nix
Normal file
19
tests/test-sources/plugins/by-name/telescope/ast-grep.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions.ast-grep.enable = true;
|
||||
};
|
||||
plugins.web-devicons.enable = true;
|
||||
};
|
||||
|
||||
combine-plugins = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions.ast-grep.enable = true;
|
||||
};
|
||||
|
||||
plugins.web-devicons.enable = true;
|
||||
performance.combinePlugins.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue