We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f94d6 commit 7ed8d1fCopy full SHA for 7ed8d1f
examples/llm.vim
@@ -18,8 +18,10 @@ function! Llm()
18
" Extract the content field from the response
19
let content = json_decode(response).content
20
21
+ let split_newlines = split(content, '\n', 1)
22
+
23
" Insert the content at the cursor position
- call setline(line('.'), getline('.') . content)
24
+ call setline(line('.'), [ getline('.') . split_newlines[0] ] + split_newlines[1:])
25
endfunction
26
27
command! Llm call Llm()
0 commit comments