Skip to content

chau-bao-long/java-kotlin-gf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-kotlin-gf

Improve go to file (gf) experience on java/kotlin project

Installation

Using vim-plug

Plug 'chau-bao-long/java-kotlin-gf'

Quick Start

nmap gf :GoToFile<cr>
nmap gT :GoToFile tabedit<cr>

Run GradleSyncSource command first, and gf or gT to see the magic

Commands

To go to the file in current buffer, new tab, vertical or horizontal split

GoToFile ['e'|'tabnew'|'sp'|'vs'] 

To extract source from gradle, which access by gf

GradleSyncSource

Configuration

  • Add more src path and test path to allow gf to detect file
let g:srcPath = [
      \ "/app/src/main/kotlin/",
      \ "/app/src/test/kotlin/",
      \ "/src/main/kotlin/",
      \ "/src/test/kotlin/",
      \ ]
  • Change where to keep extracted source lib
let g:libPath = "~/.gradle/src"

About

Improve go to file (gf) experience on java/kotlin project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published