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
Last revisionBoth sides next revision
neovim [2024/03/26 10:39] dblumeneovim [2024/04/08 21:03] dblume
Line 14: Line 14:
   ln -s /snap/bin/nvim $HOME/.local/bin/nvim   ln -s /snap/bin/nvim $HOME/.local/bin/nvim
  
-But 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]]. Then I extracted it into $HOME/.local/bin/.+But 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/.
  
   cd ~/.local/bin/   cd ~/.local/bin/
 +  wget https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
   tar -xvf nvim-linux64.tar.gz   tar -xvf nvim-linux64.tar.gz
   ln -s nvim-linux64/bin/nvim nvim   ln -s nvim-linux64/bin/nvim nvim
Line 30: Line 31:
   - read [[https://docs.github.com/en/copilot/using-github-copilot/getting-started-with-github-copilot?tool=vimneovim#about-github-copilot-and-vimneovim|docs]].   - read [[https://docs.github.com/en/copilot/using-github-copilot/getting-started-with-github-copilot?tool=vimneovim#about-github-copilot-and-vimneovim|docs]].
      
 +===== taglist =====
  
 +The old taglist I have isn't working as expected in tmux. Opening the window would wrap neovim windows. The fix is to disable auto-resizing the winwidth.
 +
 +  let Tlist_Inc_Winwidth = 0
 +
 +Along the way, I tried getting the latest release (since head auto runs tests). Maybe I should keep it.
 +
 +  git clone --filter=blob:none -b v4.6 https://github.com/yegappan/taglist ~/.local/share/nvim/site/plugin/
 +
 +===== cscope =====
 +
 +Cscope has been removed from neovim. If you want it back, install [[https://github.com/dhananjaylatkar/cscope_maps.nvim|dhananjaylatkar/cscope_maps.nvim]] into ''.config/nvim/pack/cscope_maps/start/''. (This //may// also work in ''~/.local/share/nvim/site/pack/cscope_maps/start/'', but you have to get the path right.)
 +
 +Your hierarchy would look something like:
 +<code>
 +~/.config/nvim/pack/cscope_maps/
 +└── start
 +    └── cscope_maps.nvim
 +        └── lua
 +            ├── cscope
 +            │   └── pickers
 +            └── utils
 +</code>
 +
 +Run the following commands:
 +
 +  mkdir -p ~/.config/nvim/pack/cscope_maps/start/
 +  cd ~/.config/nvim/pack/cscope_maps/start/
 +  git clone --filter=blob:none https://github.com/dhananjaylatkar/cscope_maps.nvim.git
 +
 +Then in your init.vim, add the following snippet:
 +
 +<file vim init.vim>
 +lua << EOF
 +require("cscope_maps").setup()
 +EOF
 +</file>
 +
 +===== Mappings =====
 +
 +The easiest way to find out where a mapping came from is to run this command:
 +
 +    :verbose imap <key sequence>
  
neovim.txt · Last modified: 2024/04/08 22:43 by dblume