mirror of
https://github.com/amix/vimrc
synced 2025-07-27 23:45:00 +08:00
Add support for Coc.nvim.
This commit is contained in:
11
sources_non_forked/coc.nvim/autoload/coc/math.vim
Normal file
11
sources_non_forked/coc.nvim/autoload/coc/math.vim
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
" support for float values
|
||||
function! coc#math#min(first, ...) abort
|
||||
let val = a:first
|
||||
for i in range(0, len(a:000) - 1)
|
||||
if a:000[i] < val
|
||||
let val = a:000[i]
|
||||
endif
|
||||
endfor
|
||||
return val
|
||||
endfunction
|
Reference in New Issue
Block a user