neovim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
neovim [2024/04/01 22:45] – [taglist] dblume | neovim [2025/04/15 16:13] (current) – [Copilot Chat] dblume | ||
---|---|---|---|
Line 9: | Line 9: | ||
The regular '' | The regular '' | ||
- | I could use snap on my work (Ubuntu) and personal frame.work laptop computers to get 0.9.5. (However, | + | [[https:// |
- | + | ||
- | sudo snap install nvim --classic | + | |
- | ln -s / | + | |
- | + | ||
- | But in WSL2, although I had '' | + | |
cd ~/ | cd ~/ | ||
Line 30: | Line 25: | ||
- '' | - '' | ||
- read [[https:// | - read [[https:// | ||
- | | + | |
+ | ===== Copilot Chat ===== | ||
+ | |||
+ | See [[https:// | ||
+ | |||
+ | <code bash> | ||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | # (Done as part of CoPilot installation) git clone --filter=blob: | ||
+ | git clone --filter=blob: | ||
+ | git clone --filter=blob: | ||
+ | </ | ||
+ | |||
+ | On macOS, I initially had trouble with diffs of the form '' | ||
+ | |||
+ | <code bash> | ||
+ | sed -i ' | ||
+ | </ | ||
+ | |||
+ | Optional, [[https:// | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | git clone --filter=blob: | ||
+ | ~/ | ||
+ | </ | ||
+ | |||
+ | Add '' | ||
+ | |||
+ | See what you think of this first. (Rainbow parentheses may be gone. Might have to add something like [[https:// | ||
+ | |||
+ | <code bash> | ||
+ | git clone --filter=blob: | ||
+ | ~/ | ||
+ | </ | ||
===== taglist ===== | ===== taglist ===== | ||
Line 40: | Line 69: | ||
git clone --filter=blob: | git clone --filter=blob: | ||
+ | |||
+ | ===== cscope ===== | ||
+ | |||
+ | Cscope has been removed from neovim. If you want it back, install [[https:// | ||
+ | |||
+ | Your hierarchy would look something like: | ||
+ | < | ||
+ | ~/ | ||
+ | └── start | ||
+ | └── cscope_maps.nvim | ||
+ | └── lua | ||
+ | ├── cscope | ||
+ | │ └── pickers | ||
+ | └── utils | ||
+ | </ | ||
+ | |||
+ | Run the following commands: | ||
+ | |||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | git clone --filter=blob: | ||
+ | |||
+ | Then in your init.vim, add the following snippet: | ||
+ | |||
+ | <file lua init.vim> | ||
+ | lua << EOF | ||
+ | require(' | ||
+ | disable_maps = true, -- Mapping C-] to :Cstag < | ||
+ | -- Alternatively, | ||
+ | -- skip_input_prompt = true, | ||
+ | -- cscope = { skip_picker_for_single_result = true }, | ||
+ | }) | ||
+ | EOF | ||
+ | </ | ||
+ | |||
+ | ===== Mappings ===== | ||
+ | |||
+ | The easiest way to find out where a mapping came from is to run this command: | ||
+ | |||
+ | :verbose imap <key sequence> | ||
neovim.1712036710.txt.gz · Last modified: 2024/04/01 22:45 by dblume