Awesome Open Source
Awesome Open Source

Awesome Neovim Configuration

This is to make setting up of neovim >= 0.7 a breeze.

NOTE : for vim >= 8 checkout vim branch

Awesome NeoVim with C++

Supports the following

  • zig, c , c++ compilers
  • linters and static analysis through null-ls
  • formatters using neovim builtin lsp
  • lsp server with nvim-lspconfig lsp client
  • Any build system
  • Treesitter syntax highlighting
  • autocompletion,documentation and all other features supported by any lsp server you configure

Awesome-NeoVim with C++

NOTE the languages supported out of the box are zig , c++ , c , lua , js , ts , html5+ , css3+ , vue , markdown , json , glsl , nix But support for other languages can easily be add by using it required lsp server configuration and installing the server and other accompaning tools for development like linters , static analysers, formatter

Requirement

Unlike the vim branch with neovim >= 0.7 most plugings written in lua and don't depend on python or node But if you decide to use a plugin that rely's on any of these you would have to install them but I recommend you find their lua equivalent. Chances are that it will be faster (due to luajit) and more well intergrated with neovim >= 0.7

Neovim Neovim does come out of the box with luajit and treesitter support

Repo structure

    ๐Ÿ“‚ ~/.config/nvim
    โ”œโ”€โ”€ ๐Ÿ“‚ lua
    โ”‚  โ””โ”€โ”€ ๐Ÿ“‚ lazy
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  init.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  symbols.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  telescope.lua
    โ”‚  โ”‚   โ””โ”€โ”€ ๎˜  trouble.lua
    โ”‚  โ””โ”€โ”€ ๐Ÿ“‚ mapping
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  editor.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  highlighting.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  init.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  lspconfig.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  spellcheck.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  tab_buffer.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  terminal.lua
    โ”‚  โ”‚   โ””โ”€โ”€ ๎˜  tree.lua
    โ”‚  โ””โ”€โ”€ ๐Ÿ“‚ plugrc
    โ”‚  โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ lspconfig
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  autopairs.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  compe.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  gitsigns.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  init.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  neorg.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  tree.lua
    โ”‚  โ”‚   โ””โ”€โ”€ ๎˜  whichkey.lua
    โ”‚  โ””โ”€โ”€ ๐Ÿ“‚ ui.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  init.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  bufferline.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  lualine.lua
    โ”‚  โ”‚   โ”œโ”€โ”€ ๎˜  onedark.lua
    โ”‚  โ”‚   โ””โ”€โ”€ ๎˜  treesitter.lua
    โ”‚  โ”œโ”€โ”€ ๎˜   editor.lua
    โ”‚  โ”œโ”€โ”€ ๎˜   plugins.lua
    โ”‚  โ”œโ”€โ”€ ๎˜   syntax.lua
    โ”‚  โ”œโ”€โ”€ ๎˜   terminal.lua
    โ”‚  โ””โ”€โ”€ ๎˜   utils.lua
    โ”œโ”€โ”€  README.md
    โ”œโ”€โ”€  LICENSE
    โ””โ”€โ”€ ๎˜  init.lua

lua/lazy directory contains file for lazy loading of plugins

lua/mapping directory contains all key mappings

lua/plugrc directory contains configuration for plugins

lua/ui directory contains tabline , statusline and treesitter configuration

lua/editor file contains neovim editor configuration.

lua/plugins file contains the list of all plugins

lua/syntax file contains syntax|highlighting commands

lua/terminal file contains configuration for neovim builtin terminal

lua/utils file contains some resuable functions

To use this awesome configuration clone this repo into $XDG_CONFIG_HOME/nvim or $HOME/.config/nvim

Installation of Paq

Paq is a Neovim package manager written in Lua. as quoted by their site Paq

Unix

git clone --depth=1 https://github.com/savq/paq-nvim.git \
    "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim
Windows (PowerShell)
git clone https://github.com/savq/paq-nvim.git "$env:LOCALAPPDATA\nvim-data\site\pack\paqs\start\paq-nvim"

NOTE

There is automatic Paq installation for all neovim. You can automate the process by putting the following commands in your neovim lua configuration file as suggested here. and open nvim and watch some beautiful magic happen. This is a one time activity so after Paq has been istalled you can remove these commands from your config. .

Thanks to @savq/paq-nvim and all colaborators.

Install Plugins Using Paq

move to $XDG_CONFIG_HOME/nvim or ~/.config/nvim/ and open the plugins.lua file and run this commands

:luafile %    # To cause lua to update cache of the file

:PaqInstall   #Install all packages listed in your configuration

:PaqUpdate    #Update all packages already on your system

:PaqClean     #Comment or remove the plugin you want to remove from plugins.lua
              #then :luafile % and run PaqClean to remove that commented/removed plugin

:PaqSync      #Execute the three operations listed above

For modern c/c++ developemt

Debian Linux - sudo aptitude install clang clang-tidy clang-format clangd cppcheck
Arch Linux   - sudo pacman -S clang lldb cppcheck
#Note: When using another build system like build2 you will need to dry run
#your build system and pipe the output to compiledb to generate compile_commands.json
# eg. $ b -vn clean update |& compiledb
#For cmake generate a compile_commands.json file using cmake with 'cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
#in your project directory

for help using the various plugins and extensions

:help local-addtions

to view the help pages and instruction manual on the various extensions

Big ShoutOuts to the Creators of Neovim. Another to all the creators of the various neovim extensions. And Last but not the least God Bless The Vim && Neovim Community for this hyperextensible and hackable text editor



Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Plugin (113,595)ย 
Lua (35,646)ย 
Powershell (19,537)ย 
Vim (18,685)ย 
Awesome List (13,620)ย 
Neovim (4,294)ย 
Vim Plugin (2,518)ย 
Nvim (1,595)ย 
Tree Sitter (216)ย 
Neovim Configuration (135)ย 
Vim Configs (132)ย 
Neovim Config (93)ย 
Neovim Colorscheme (54)ย 
Lspconfig (5)ย