Code Monkey home page Code Monkey logo

nvim's Introduction

Keybinds and Configurations

Plugin Management

  • :Lazy manages general plugins
  • :Mason manages LSP servers

General Keybinds

The <leader> key is set to <Space>.

Keybind Action
s Disabled in favor of surround functionality
ss Replaces s functionality
<Esc> Clears highlight on search
<C-s> Save file in all modes
<C-S> Save all files in all modes
<C-j> Go to next quickfix item
<C-k> Go to previous quickfix item
<Arrow Keys> Disabled in normal mode
<Leader>; Cycle through windows
<Leader>n Create a new empty bufferline tab
<Leader>o Insert a line below the current line
<Leader>O Insert a line above the current line
<Leader>q Close the current buffer (file)
<Leader>t Toggle Nvim-Tree
<Leader>x Focus on Nvim-Tree
<Leader>u Toggle UndoTree
<Leader>c Close current window
<Leader>f Open current file in NvimTree

Plugin Specific Keybinds

Bufferline

Keybind Action
<Leader>1 to <Leader>9 Switch between tabs 1 to 9
<Leader><Tab> Cycle through tabs

Diagnostic

Keybind Action
[d Go to previous diagnostic message
]d Go to next diagnostic message
<Leader>e Show diagnostic error messages
<Leader>q Open diagnostic quickfix list

Telescope

Keybind Action
<Leader>sh Search help tags
<Leader>sk Search keymaps
<Leader>sf Search files
<Leader>ss Search Telescope built-in functions
<Leader>sw Search the current word
<Leader>sg Search by grep
<Leader>sd Search diagnostics
<Leader>sr Resume last Telescope search
<Leader>s. Search recent files
<Leader><Leader> Find existing buffers
<Leader>/ Fuzzily search in the current buffer
<Leader>s/ Live grep in open files
<Leader>sn Search Neovim configuration files

LSP

Keybind Action
gd Go to definition
gr Go to references
gI Go to implementation
go Go to type definition
<Leader>ds Search document symbols
<Leader>ws Search workspace symbols
<Leader>rn & <F2> Rename symbol
<Leader>ca Show code actions
<leader>i Show hover documentation / Info
gD Go to declaration
<Leader>ih Toggle inlay hints

Neovide

Keybind Action
<C-+> & <C-ScrollWheelUp> Increase Neovide scale factor
<C--> & <C-ScrollWheelDown> Decrease Neovide scale factor
<C-0> Reset Neovide scale factor to 1

Word Motions

Motion Description
leader + b Move to the beginning of the current/previous word
leader + w Move to the beginning of the next word
leader + e Move to the end of the current/next word

CMP

Keybind Action
<Tab> Cycle through the completion suggestions
<S-Tab> Cycle backwards through the suggestions
<Enter> Select the highlighted completion item
<C-Space> Trigger completion manually
<C-e> Close the completion menu
<C-f> Scroll down in the documentation window
<C-b> Scroll up in the documentation window

Diagnostics

Motion Description
[d Go to previous Diagnostic message
**d Go to next Diagnostic message
<leader>de Show diagnostic Error messages
<leader>dq Open diagnostic Quickfix list

Inbuilt Plugin Keybinds Reference

nvim's People

Contributors

baltermia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.