Skip to content

Arazu161/neovim-lua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Lua

My Neovim configuration with Lua

.

This setup is for neovim >= v0.5.0

Plugins

paq-nvim - Neovim package manager written in Lua

indentLine - Show indent lines

lualine.nvim - Statusline written in pure Lua

nvim-cmp - Auto completion plugin

nvim-lspconfig - A collection of common configurations for Neovim's built-in language server client.

nvim-tree.lua - A File Explorer written In Lua

nvim-web-devicons - A Lua fork of vim-devicons

vista.vim - View and search LSP symbols, tags in Vim/NeoVim

Directory tree of Lua files

~/.config/nvim
.
├── init.lua
└── lua
    ├── keymapping.lua
    ├── plugins
    │   ├── lualine.lua
    │   ├── nvim-cmp.lua
    │   ├── nvim-lspconfig.lua
    │   ├── nvim-tree.lua
    │   ├── paq-nvim.lua
    │   └── vista.lua
    └── settings.lua

Files and settings

Screenshots

Bash

.

C

.

Python

.

Appearance

Colorscheme: molokai

Fonts: Cozette

Icons: nvim-web-devicons

Startup time

.

Installation

  1. Install neovim >= v0.5.0

  2. Install npm (for download the packages of LSP language servers)

  3. Download this repository with git and copy the nvim folder

    git clone https://github.com/brainfucksec/neovim-lua.git
    cd neovim-lua/
    cp -Rv nvim ~/.config/nvim/
  1. Install Paq

  2. Open neovim and run the command :PaqInstall to install the plugins

LSP Configuration

  1. Install LSP language servers with npm
    sudo npm install -g bash-language-server pyright vscode-langservers-extracted
  1. Install clang for use LSP with clangd

  2. Open a file with neovim and run command :LspInfo for testing the LSP support

Supported languages in my configuration:

Bash - bashls

Python - pyright

C, C++ - clangd

HTML, CSS, JavaScript - vscode-html

See: nvim-lspconfig #CONFIG.md

TODO

  • Add Go,Lua (and other languages) to LSP configuration

  • Continue the migration from VimL (Vimscript) to Lua :)

  • Add a start page when Neovim is opened without arguments


Resources

Examples:

Lua resources

Disclaimer

As all my setups I try to follow the KISS principle, probably some concepts may not be valid for everyone, then feel free to take what you need but don't install anything without checking first!

About

Neovim Lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vim Script 93.1%
  • Lua 6.9%