Skip to content

Commit b4c6e76

Browse files
authored
feat: add configuration options for wrap and filetype
This change improves the user experience. The chat is getting more readable if that is in markdown and wrap.
1 parent ea2ac30 commit b4c6e76

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rplugin/python3/plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def copilotChat(self, args: list[str]):
4242
# Create a new scratch buffer to hold the chat
4343
self.nvim.command("enew")
4444
self.nvim.command("setlocal buftype=nofile bufhidden=hide noswapfile")
45+
# Set filetype as markdown and wrap
46+
self.nvim.command("setlocal filetype=markdown")
47+
self.nvim.command("setlocal wrap")
4548
if self.nvim.current.line != "":
4649
self.nvim.command("normal o")
4750
for token in self.copilot.ask(prompt, code, language=file_type):

0 commit comments

Comments
 (0)