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
Next revision
Previous revision
neovim [2025/07/18 22:27] – [Copilot Chat] dblumeneovim [2025/10/17 17:07] (current) – [Updating Copilot and Copilot Chat] dblume
Line 11: Line 11:
 [[https://github.com/cli/cli/blob/trunk/docs/install_linux.md#snap-do-not-use|GitHub recommends against snap for gh]], and in WSL2, although I had ''snap'', it didn't work, so I [[https://github.com/neovim/neovim/blob/master/INSTALL.md#install-from-download|downloaded the tarball]]. (If you click Linux, it'll download the tarball. Otherwise [[https://github.com/neovim/neovim/releases|scroll down and find/expand "Assets"]].) Then I extracted it into $HOME/.local/bin/. [[https://github.com/cli/cli/blob/trunk/docs/install_linux.md#snap-do-not-use|GitHub recommends against snap for gh]], and in WSL2, although I had ''snap'', it didn't work, so I [[https://github.com/neovim/neovim/blob/master/INSTALL.md#install-from-download|downloaded the tarball]]. (If you click Linux, it'll download the tarball. Otherwise [[https://github.com/neovim/neovim/releases|scroll down and find/expand "Assets"]].) Then I extracted it into $HOME/.local/bin/.
  
 +  uname -m  # x86_64
   cd ~/.local/bin/   cd ~/.local/bin/
-  wget https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz +  wget https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz 
-  tar -xvf nvim-linux64.tar.gz+  tar -xvf nvim-linux64.tar.gz.1
   ln -s nvim-linux64/bin/nvim nvim   ln -s nvim-linux64/bin/nvim nvim
  
Line 38: Line 39:
 git clone --filter=blob:none --single-branch https://github.com/nvim-lua/plenary.nvim git clone --filter=blob:none --single-branch https://github.com/nvim-lua/plenary.nvim
 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>
 +
 +===== Updating Copilot and Copilot Chat =====
 +
 +This is a manual process because I only want to do it when I'm ready to handle backwards incompatibilities.
 +
 +Update Copilot autosuggest:
 +<code bash>
 +mkdir ~/backup
 +mv ~/.config/nvim/pack/github ~/backup/
 +git clone --filter=blob:none --single-branch https://github.com/github/copilot.vim.git ~/.config/nvim/pack/github/start/copilot.vim
 +# Test auto suggest. If it works, delete the backup and the /.git dir...
 +rm -rf ~/backup/github
 +rm -rf ~/.config/nvim/pack/github/start/copilot.vim/.git
 +</code>
 +
 +Update Copilot Chat:
 +<code bash>
 +mv ~/.config/nvim/pack/copilotchat ~/backup/
 +mkdir -p ~/.config/nvim/pack/copilotchat/start
 +cd ~/.config/nvim/pack/copilotchat/start
 +git clone --filter=blob:none --single-branch https://github.com/nvim-lua/plenary.nvim
 +git clone --filter=blob:none --single-branch https://github.com/CopilotC-Nvim/CopilotChat.nvim
 +# If WSL, see if you have to fix XDG_RUNTIME_DIR.
 +# Test :CopilotChat. If it works, delete the backups and the /.git dir...
 +rm -rf ~/backup/copilotchat
 +rm -rf ~/.config/nvim/pack/copilotchat/start/CopilotChat.nvim/.git
 +rm -rf ~/.config/nvim/pack/copilotchat/start/plenary.nvim/.git
 +rmdir ~/backup
 </code> </code>
  
Line 63: Line 93:
  
 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]]:
- 
  
 <code bash> <code bash>
neovim.1752902853.txt.gz · Last modified: 2025/07/18 22:27 by dblume