User Tools

Site Tools


neovim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
neovim [2025/07/18 21:47] – [Copilot] dblumeneovim [2025/07/18 22:27] (current) – [Copilot Chat] dblume
Line 39: Line 39:
 git clone --filter=blob:none --single-branch https://github.com/CopilotC-Nvim/CopilotChat.nvim git clone --filter=blob:none --single-branch https://github.com/CopilotC-Nvim/CopilotChat.nvim
 </code> </code>
 +
 +==== macOS tweak ====
  
 On macOS, I initially had trouble with diffs of the form ''[file:main.cpp](#file:main.cpp-context)'', so I edited [[https://github.com/CopilotC-Nvim/CopilotChat.nvim/blob/main/lua/CopilotChat/client.lua#L25|~/.config/nvim/pack/copilotchat/start/CopilotChat.nvim/lua/CopilotChat/client.lua:25]]. On macOS, I initially had trouble with diffs of the form ''[file:main.cpp](#file:main.cpp-context)'', so I edited [[https://github.com/CopilotC-Nvim/CopilotChat.nvim/blob/main/lua/CopilotChat/client.lua#L25|~/.config/nvim/pack/copilotchat/start/CopilotChat.nvim/lua/CopilotChat/client.lua:25]].
Line 45: Line 47:
 sed -i 's/(#file:%s-context)/(%s)/' ~/.config/nvim/pack/copilotchat/start/CopilotChat.nvim/lua/CopilotChat/client.lua sed -i 's/(#file:%s-context)/(%s)/' ~/.config/nvim/pack/copilotchat/start/CopilotChat.nvim/lua/CopilotChat/client.lua
 </code> </code>
 +
 +==== WSL tweak ====
 +
 +WSL sets ''$XDG_RUNTIME_DIR'' to a path that cannot be written to. So either:
 +
 +  - ''export XDG_RUNTIME_DIR=/tmp''
 +  - or modify plenary's curl.lua to not find it. (Mangle it.) (See ''sed'' below.)
 +  - or ''[[https://github.com/microsoft/WSL/issues/10846#issuecomment-1840548054|sudo chown 1000:1000 /mnt/wslg/run/user/1000]]'' (untested)
 +
 +<code bash>
 +sed -i 's/XDG_RUNTIME_DIR/DXB_HIDDEN_XDG_RUNTIME_DIR/' ~/.config/nvim/pack/copilotchat/start/plenary.nvim/lua/plenary/curl.lua
 +</code>
 +
 +==== Optional Settings ====
  
 Optional, [[https://github.com/CopilotC-Nvim/CopilotChat.nvim/wiki/Examples-and-Tips#markdown-rendering|MarkDown rendering]]: Optional, [[https://github.com/CopilotC-Nvim/CopilotChat.nvim/wiki/Examples-and-Tips#markdown-rendering|MarkDown rendering]]:
neovim.txt · Last modified: 2025/07/18 22:27 by dblume