wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

Use Lua Version with Vim Plug #406

Closed marcato15 closed 1 year ago

marcato15 commented 1 year ago

I use Vim Plug to manage my neovim plugins and I can't figure out where to put the require call in order to use the Lua implementation. Has anyone else got the Lua version working with Vim Plug?

marcato15 commented 1 year ago

Here is what I ended up doing in case anyone else comes along and needs this

let g:CommandTPreferredImplementation='lua'

autocmd VimEnter * call s:setup_commandt()
function! s:setup_commandt() abort
lua<<EOF
print("aaaaaaaa")
require('wincent.commandt').setup()
EOF
endfunction