Git Product home page Git Product logo

nvim's Introduction

Requiered programs

  • ripgrep
  • fd
  • npm and any other package managers, depending on which LSPs you want
  • deno, for peek.nvim (live md viewer)

TODO

  • Might change autoclose.nvim to nvim-autopairs or ultimate-autopair.nvim

Big thank you to:

  • ThePrimeagen for making an awesome full set up video
  • Josean Martinez for making a great video on LSP an Lazy
  • Max Niia for having a really nice config to "borrow" from

Mappings

By default is spacebar

neovim

Mode Keys Function Note
Visual K/J Move highlighted code up or down capital letter means <shift>+letter
Normal J Move line below to end of current line
Normal n/N Keep search term in middle of screen
Vis only p Replace highlighted word without copying it
Vis/Norm d Delete without copying
Vis/Norm y Copy to system clipboard
Normal s Replace all of hovered word
Normal x Make current file executable Only on linux

Telescope

Mode Keys Function Note
Normal Open telescope for git files
Normal ff Open telescope for all files
Normal fc Open telescope for colorschemes Might not be permanent
Normal ps Find files containing word

Harpoon

Mode Keys Function Note
Normal Open harpoon list
Normal ha Add file to harpoon list
Normal h<1-9> Go to file <1-9>

Comment

Mode Keys Function Note
Normal cc Toggle comments linewise on line
Normal bc Toggle comments blockwise on line
Visual (x) c Toggle comments linewise on selection
Visual (x) b Toggle comments blockwise on selection

cmp

Mode Keys Function Notes
Insert <C-k> Previous suggestion
Insert <C-j> Next suggestion
Insert <C-b> Scroll down suggestions
Insert <C-f> Scroll up suggestions
Insert <C-space> Complete suggestion I have no idea what this is, the video-guy did it so...
Insert <C-e> Close suggestions
Insert <CR> Confirm suggestion

LSP

Mode Keys Function Notes
Normal gd Show definitions These mappings will probably change soon s I set more things up
Normal gi Show implementations
Normal gt Show type defs
Norm/Vis <leader>ca See available code actions
Normal <leader>rn Smart rename Renames all variables/functions with the same name
Normal <leader>D Show buffer diagnostics
Normal <leader>d Show line diagnostics
Normal <[d> Go to previous diagnostic These will definately be changed as they are difficult on swedish keyboards
Normal <]d> Go to next diagnostic
Normal K Show documentation for what is under cursor
Normal <leader>rs Restart LSP Might get removed as it is an unusual and easy ":" command

Other mappings

Plugin Mode Keys Function Note
Lazy Normal l Open Lazy UI
Nvim-Tree Normal t Toggle filetree
Undotree Normal u Toggle undotree
Fugitive Normal gs Open git status window

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.