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 [2024/04/08 21:03] dblumeneovim [2024/09/16 20:05] (current) – [cscope] dblume
Line 9: Line 9:
 The regular ''apt-get'' repo is too out-of-date. When 0.9.5 was stable, Ubuntu 20.04 was providing 0.3 or 0.4. The regular ''apt-get'' repo is too out-of-date. When 0.9.5 was stable, Ubuntu 20.04 was providing 0.3 or 0.4.
  
-I could use snap on my work (Ubuntu) and personal frame.work laptop computers to get 0.9.5. (However, [[https://github.com/cli/cli/blob/trunk/docs/install_linux.md#snap-do-not-use|GitHub recommends against snap for gh]], so maybe snap is problematic.) +[[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/.
- +
-  sudo snap install nvim --classic +
-  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]]. (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/
Line 64: Line 59:
 Then in your init.vim, add the following snippet: Then in your init.vim, add the following snippet:
  
-<file vim init.vim>+<file lua init.vim>
 lua << EOF lua << EOF
-require("cscope_maps").setup()+  require('cscope_maps').setup(
 +    disable_maps = true, -- Mapping C-] to :Cstag <cword> worse than :tag <cword> 
 +-- Alternatively, if we liked the mappings, then customise these two: 
 +--    skip_input_prompt = true, 
 +--    cscope = { skip_picker_for_single_result = true }, 
 +  })
 EOF EOF
 </file> </file>
neovim.1712635428.txt.gz · Last modified: 2024/04/08 21:03 by dblume