1
Fork 0
satellite/dotfiles/neovim
Matei Adriel 5bd0813530
A few changes:
- Updated all vim plugins
- Fixed tmux keybind for horizontal splits
- Fixed warnings about the config => opt change in lazy.nvim
2023-02-09 06:59:58 +01:00
..
ftplugin Rosepine theme! 2023-01-22 01:22:38 +01:00
lua A few changes: 2023-02-09 06:59:58 +01:00
.neoconf.json Added so much stuff 2023-01-10 02:38:06 +01:00
init.lua Added so much stuff 2023-01-10 02:38:06 +01:00
lazy-lock.json A few changes: 2023-02-09 06:59:58 +01:00
neoconf.json Added so much stuff 2023-01-10 02:38:06 +01:00
README.md Added so much stuff 2023-01-10 02:38:06 +01:00

Neovim config

Articles

Keybinds

Table of my own keybinds. Here as documentation for myself. I am yet to include any of the keybinds for cmp here.

Things written using italics are chords (aka all the keys need to be pressed at the same time)

Keybind Description Plugins
vs Create vertical split
cp Use system clipboard
jl Save
jk Exit insert mode
rw Rename word under cursor
<leader>k Insert digraph
<leader>a Swap last 2 used buffers
C-n Open tree nvim-tree
vc Clear vimux window vimux
vl Rerun last vimux command vimux
vp Run command in another tmux pane vimux
C-hjkl Navigation between vim & tmux panes vim-tmux-navigator
J Show line diagnostics lspconfig
K Show hover info lspconfig
L Signature help (?) lspconfig
gD Go to declaration lspconfig
gd Go to definition lspconfig
gi Go to implementation lspconfig
<leader>rn Rename lspconfig
<leader>f format lspconfig
<leader>ca code actions lspconfig

Telescope

Keybind Description Plugins
Ctrl-P Find files
Ctrl-F Grep in project
<leader>d Diagnostics lspconfig
<leader>ca Code actions lspconfig
<leader>t Show builtin pickers
<leader>s Show symbols using tree-sitter
<leader>gj List git commits
<leader>gk List git branches
jp Interactive file broswer telescope-file-browser
ui Insert unicode char

Idris

The idris and arpeggio plugins are implicit here

Keybind Description
isc Case split
imc Make case
iml Make lemma
ies Expression search
igd Generate definition
irh Refine hole
iac Add clause

Purescript

Keybind Description
vb Make tmux run spago build in sepearate pane
vt Make tmux run spago test in separate pane

Nix

Keybind Description
ug Run nix-fetchgit on the current file

Lean

  • Extra brackets: ⟨⟩

Some cool vim keybinds I sometimes forget about

Documentation for myself

Keybind Description Plugins
zz Center the current line

Important plugins I use the default mappins of

  • paperplanes
Keybind Description
:PP Create pastebin-like link
  • nvim-comment
Keybind Description
gcc Comment line
gc Comment selection
  • neogit
Keybind Description
C-g Open neogit
  • gitlinker
Keybind Description
gy Create remote link
  • nvim-surround
Keybind Description Mode
cs[a][b] Change surrounding pair from a to b n
ds[a] Delete surrounding pair of a n
ys[m][a] Surround the motion m with a n
S[a] Surround selected code with a v