-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add g:FerretExecutableArguments and ferret#get_default_arguments()
- Loading branch information
Showing
5 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
" Copyright 2018-present Greg Hurrell. All rights reserved. | ||
" Licensed under the terms of the BSD 2-clause license. | ||
|
||
"" | ||
" @function ferret#get_default_arguments() | ||
" | ||
" Call this with an executable name to find out the default arguments that will | ||
" be passed when invoking that executable. For example: | ||
" | ||
" ``` | ||
" echo ferret#get_default_arguments('rg') | ||
" ``` | ||
" | ||
" This may be useful if you wish to extend or otherwise modify the arguments | ||
" by setting |g:FerretExecutableArguments|. | ||
" | ||
function! ferret#get_default_arguments(executable) abort | ||
return get(ferret#private#executables(), a:executable, '') | ||
endfunction |
This file contains 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
This file contains 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
This file contains 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