Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/christoph/nvim-setup


https://github.com/christoph/nvim-setup

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# nvim-setup
based on kickstart.nvim

##
- ; and : acts as :
- jk: Esc
- Space : Leader

## Navigation
- Ctrlh : move to left split
- Ctrlj : move to down split
- Ctrlk : move to up split
- Ctrll : move to right split
- CtrlArrows : Resive split
- Tab : Next tab
- ShiftTab : Previous tab
- Ctrl6 : Jump between last two files
- Shift8 on word : jump to next similar word
- Ctrlo : jump back to the last word
- Ctrl. : next buffer
- Ctrl, : previous buffer
- H : start of line
- L : end of line
- visual mode: J/K to move selection

## Search
- :/ + text
- :/ + Ctrlr paste from register

## Diagnostics
- [d : Next diagnostic element
- ]d : Previous diagnostic element

## mg979/vim-visual-multi
- Ctrln : select word
- n/N : select next/previous word
- [/] : move cursor
- q : skip and take next
- Q : remove current selectionand cursor

## phaazon/hop.nvim
- Spacej : Search for pattern

## folke/trouble.nvim
- Spacexx : Toggle window
- Spacexw : Open workspace diagnostics
- Spacexd : Open document diagnostics
- Spacexq : Open quick fixes
- gR : Open references

## telescope
- Spacesf : Search file
- SpaceSpace : Search buffers
- Ctrlx : Open in hsplit
- Ctrlv : Open in vsplit
- Ctrlt : Open in tab
- Ctrln/p : Move up/down
- Ctrlt : Open in quickfix window
- Space? : Find recently opened files

## nvim-tree/nvim-tree.lua
- Spacett : toggle file explorer
- Spacetf : open file exporer with current file selected
Inside the explorer
- o : open
- q: close
- Y : copy relative path
- gy : copy absolute path
- P : Parent directory
- W : collapse
- a : new
- c : copy
- d : delete
- p : paste
- Ctrl} : CD
- CtrlT : open in tab
- CtrlV : open in vertical split
- CtrlX : open in horizontal split

## LSP
- Spacern : rename
- Spaceca : code action
- gd : goto definition
- gr : goto references (gR for list)
- gI : goto implementations
- SpaceD : type definitions
- Spaceds : document symbols
- K : hover
- Ctrlk : help

## Rust
- CtrlSpace : Hover actions
- Spaceca : code action group

## nvim-treesitter
- CR : Select node (select more with each press)
- BS : Deselect node (deselect more with each press)

## numToStr/Comment.nvim
- gcc : single line comment
- visual mode + gc : comment selected lines

## machakann/vim-sandwich
- ysiw{element} : Surround (w)ord by element
- ysib{element} : Surround (inner) (b)lock by element
- ysis{element} : Surround (inner) (s)ection by element
- ysab{element} : Surround (outer) (b)lock by element
- ysas{element} : Surround (outer) (s)ection by element
- dss : Remove first bracket in block
- ds{element} : Remove first element brackets
- css{element} : Replace first bracket in block with element
- cs{bracket}{element} : Replace bracket with element