use put instead in append (not sure if better though)
authorRobin Krens <robin@robinkrens.nl>
Thu, 2 Jan 2025 17:59:10 +0000 (18:59 +0100)
committerRobin Krens <robin@robinkrens.nl>
Thu, 2 Jan 2025 17:59:10 +0000 (18:59 +0100)
claudy.vim

index 6a87498..042d6d8 100644 (file)
@@ -146,11 +146,11 @@ function! s:SendMessage()
     call add(b:chat_history, {'role': 'assistant', 'content': l:response})
     
     " Add visual separator
-    call append('$', repeat('-', 80))
+    put = repeat('-', 80)
     " Add response
-    put =l:response
+    put = l:response
     " call append('$', 'Claude: ' . l:response)
-    call append('$', '')
+    put = repeat('-', 80) . '\n'
     
     " Move cursor to new line
     normal! G