lsp-cli 0.1.6

Command-line tool for talking to Language Server Protocol (LSP) servers from the terminal.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function! OrderTotal(quantity, price)
    return a:quantity * a:price
endfunction

function! BuildSampleOrder()
    return "Carol"
endfunction

function! FormatOrder(customer, quantity, price)
    let total = OrderTotal(a:quantity, a:price)
    return a:customer . " has " . a:quantity . " items worth " . total
endfunction

echo FormatOrder(BuildSampleOrder(), 2, 35.0)