23 lines
439 B
VimL
23 lines
439 B
VimL
if exists("s:loaded")
|
|
finish
|
|
endif
|
|
let s:loaded = 1
|
|
|
|
|
|
let s:DefinitionImpl = {}
|
|
|
|
|
|
function! s:DefinitionImpl.run(data)
|
|
if len(a:data.lines) > 0
|
|
let res = util#ParseV1(a:data.lines[0])
|
|
call util#JumpToLocation(res.file, res.line, res.col + 1)
|
|
else
|
|
echohl Comment | echo "Not found"
|
|
endif
|
|
endfunction
|
|
|
|
|
|
function! features#definition#run()
|
|
call suggest#New("def", 0, s:DefinitionImpl)
|
|
endfunction
|
|
|