Skip to content

Commit

Permalink
fix: change chooser support check to explicitly filter for neovim (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc-stripe committed Jun 14, 2023
1 parent b2573b0 commit 111db61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/arduino/chooser.vim
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ function! s:mk_fzf_callback(callback)
endfunction

" telescope extension {{{1
if !exists('g:arduino_telescope_enabled') && exists('*luaeval')
if !exists('g:arduino_telescope_enabled') && has('nvim')
let g:arduino_telescope_enabled = luaeval("pcall(require, 'telescope')")
endif

" neovim vim.ui.select {{{1
if !exists('g:arduino_nvim_select_enabled') && exists('*luaeval')
if !exists('g:arduino_nvim_select_enabled') && has('nvim')
let g:arduino_nvim_select_enabled = luaeval('(vim.ui and vim.ui.select) ~= nil')
endif

Expand Down

0 comments on commit 111db61

Please sign in to comment.