Auto detect and import for kotlin/java project
We need fzf to show dialog and pick the import from available candidates
Plug 'vijaymarupudi/nvim-fzf'
Using vim-plug
Plug 'chau-bao-long/vim-import-kotlin'
Config learn path, which point to your set of source code to learn import lines
let g:learn_path = $HOME . "/all-your-kotlin-projects-folder"
Run LearnImport to build import dictionary cache from library
:LearnImport<cr>
And map key to use it
nnoremap <space>il :KotlinImport<cr>
If you has Comrade setup properly, this command will use import results from intelliJ
nnoremap <space>ia :ComradeImport<cr>