Skip to content

VonHeikemen/nvim-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Neovim Starter

Minimal example lua configuration. I do mean minimal, there are no third party plugins involved. It's meant to showcase enough about Neovim's lua api so you can build your configuration.

Most of the code in this configuration is explained here:

Installation

  • Backup your existing configuration if you have one.

  • Create an init.lua file in your system. Use this command if you don't know the specific location of Neovim's configuration folder.

nvim --headless -c 'call mkdir(stdpath("config"), "p") | exe "edit" stdpath("config") . "/init.lua" | write | quit'
  • Open your configuration file with Neovim.
nvim -c 'edit $MYVIMRC'
  • Copy the content of init.lua in this repository into your own init.lua.

Keybindings

Leader key: Space.

Mode Key Action
Normal <leader>h Go to first non empty character in line.
Normal <leader>l Go to last non empty character in line.
Normal <leader>a Select all text.
Normal gy Copy selected text to clipboard.
Normal gp Paste clipboard content.
Normal <leader>w Save file.
Normal <leader>bq Close current buffer.
Normal <leader>bl Go to last active buffer.
Normal <leader><space> Show open files.
Normal <leader>e Toggle file explorer. When opened show the directory of the current file.
Normal <leader>E Toggle file explorer. When opened it shows files in the current working directory.

About

Neovim example configuration. To help you start in your journey

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published