Giter Club home page Giter Club logo

neovim-lua's Introduction

Neovim Lua

My Neovim configuration with Lua

.

This setup is for neovim >= v0.5.0

Plugins

paq-nvim - Neovim package manager written in Lua

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

feline.nvim - A minimal, stylish and customizable statusline for Neovim written in Lua

indentLine - Show indent lines

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

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

nvim-treesitter - Nvim Treesitter configurations and abstraction layer

nvim-cmp - Auto completion plugin

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

LuaSnip - Snippet Engine for Neovim written in Lua

nvim-autopairs - A super powerful autopairs for Neovim.

Directory tree of Lua files

~/.config/nvim
├── after
├── init.lua
└── lua
    ├── keymaps.lua
    ├── plugins
    │   ├── feline.lua
    │   ├── nvim-autopairs.lua
    │   ├── nvim-cmp.lua
    │   ├── nvim-lspconfig.lua
    │   ├── nvim-tree.lua
    │   ├── nvim-treesitter.lua
    │   ├── paq-nvim.lua
    │   └── vista.lua
    └── settings.lua

Files and settings

Screenshots

.

.

Appearance

Colorscheme: Neovim Monokai

Fonts: Cozette

Icons: nvim-web-devicons

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 tsserver
  1. Install clang for use LSP with clangd

  2. Open a source file of one of the supported languages with neovim, in the Neovim cmd line run command :LspInfo for testing the LSP support

Languages currently supported:

Bash - bashls

Python - pyright

C-C++ - clangd

HTML/CSS/JSON - vscode-html

JavaScript/TypeScript - tsserver

See: nvim-lspconfig #CONFIG.md

TODO

  • Add Lua to LSP configuration
  • Improve font icons

Guides and resources

Lua resources

Disclaimer

  • This configuration is in development version. See: Version on init.lua file.

  • 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!


Thanks to all the authors of the sources mentioned above and to all the others from whom I "stole" some configs :)

neovim-lua's People

Contributors

brainfucksec 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.