Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/phpactor/quickfix.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function! phpactor#quickfix#strategy() abort
if !has_key(g:, 'PhpactorQuickfixStrategy')
if (g:PhpactorQuickfixStrategy == v:null)
return s:auto_detect_strategy()
endif

Expand Down
4 changes: 4 additions & 0 deletions plugin/phpactor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ if !exists('g:phpactorCompletionIgnoreCase')
let g:phpactorCompletionIgnoreCase = 1
endif

if !exists('g:PhpactorQuickfixStrategy')
let g:PhpactorQuickfixStrategy = v:null
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let g:PhpactorQuickfixStrategy = v:null
let g:PhpactorQuickfixStrategy = function('phpactor#quickfix#fzf')

We don't need v:null since we already handle a default.
We cound even make s:auto_detect_strategy() public, something like phpactor#quickfix#default_strategy()
So we can use it to initialize the config variable and keep the same logic.

endif

if g:phpactorOmniAutoClassImport == v:true
autocmd CompleteDone *.php call phpactor#_completeImportClass(v:completed_item)
endif
Expand Down