Skip to content

Commit

Permalink
Fix to check ops are supported #214
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Jun 28, 2020
1 parent 7f9449e commit c49609b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/iced/nrepl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,10 @@ function! s:connected(resp, opts) abort
let s:nrepl['init_ns'] = iced#nrepl#ns#name_by_var()

if get(a:opts, 'with_iced_nrepl', v:true)
" FIXME
call s:__add_missing_middlewares()
" Add missing middlewares if there are
if iced#nrepl#is_supported_op('ls-middleware') && iced#nrepl#is_supported_op('add-middleware')
call s:__add_missing_middlewares()
endif

" Check if nREPL middlewares are enabled
if !iced#nrepl#is_supported_op('iced-version')
Expand Down

0 comments on commit c49609b

Please sign in to comment.