mirror of
https://github.com/oppiliappan/statix.git
synced 2024-10-26 11:48:40 +03:00
15 lines
301 B
VimL
15 lines
301 B
VimL
|
function! ApplyStatixSuggestion()
|
||
|
let l:l = line('.')
|
||
|
let l:c = col('.')
|
||
|
let l:filter = "%!statix single -p " . l . "," . c . ""
|
||
|
execute l:filter
|
||
|
|
||
|
silent if v:shell_error == 1
|
||
|
undo
|
||
|
endif
|
||
|
|
||
|
call cursor(l, c)
|
||
|
endfunction
|
||
|
|
||
|
nnoremap gf :call ApplyStatixSuggestion()<cr>
|