parent
f1384258dc
commit
76e54f8ad5
4 changed files with 52 additions and 3 deletions
|
|
@ -60,7 +60,7 @@ function! modules#GetImports()
|
|||
|
||||
let [begin, end] = modules#ImportLineRange()
|
||||
let lines = getline(begin, end)
|
||||
return filter(split(substitute(join(lines, ""), ",", "", "g"), " "), 'v:val !~ "^ *$"')[1:-1]
|
||||
return sort(filter(split(substitute(join(lines, ""), ",", "", "g"), " "), 'v:val !~ "^ *$"')[1:-1])
|
||||
endfunction
|
||||
|
||||
function! modules#ImportMap(imports)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue