Giter Site home page Giter Site 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

indentLine - Show indent lines

lualine.nvim - Statusline written in pure Lua

nvim-compe - 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

tagbar - Browse the tags of the current file and get an overview of its structure

I use Paq for plugin manager, see: https://github.com/savq/paq-nvim#installation

Neovim directory tree

~/.config/nvim
.
├── init.lua
└── lua
    ├── keymapping.lua
    ├── nvim-compe
    │   └── main.lua
    ├── nvim-lspconfig
    │   └── main.lua
    ├── nvim-tree
    │   └── main.lua
    ├── settings.lua
    └── statusline.lua

Files and settings

  • init.lua: Main configuration file (call lua modules, load plugins etc.)

  • lua: Folder of lua modules, here reside all the Lua modules that needed. The logic is simple, inside the lua folder there are the files and/or folders for neovim and plugins settings (written in Lua), these modules are called from init.lua file (See below). For plugins settings I use the convention <plugin-folder/main.lua>. See: https://github.com/nanotee/nvim-lua-guide#where-to-put-lua-files

  • keymapping.lua: Keymaps configuration file, vim/neovim and plugins keymaps.

  • settings.lua: General Neovim settings and configuration

  • statusline.lua: Statusline configuration file (in this case I use this file for lualine.nvim configuration)

  • nvim-compe: Autocompletion settings, TAB completion also for LSP

  • nvim-lspconfig: LSP configuration: in this file I insert the language servers for LSP

  • nvim-tree: File manager settings

LSP config

See: nvim-lspconfig #CONFIG.md

Screenshots

Bash

.

C

.

Python

.

Appearance

Colorscheme: molokai

Fonts: Cozette

Icons: nvim-web-devicons

TODO


Resources

Examples:

Lua resources

Disclaimer

This configuration is in alpha version, See: Version on init.lua as a reference. I work fine with this configuration but it is still not intended for daily use, see my current init.vim configuration on my dotfiles for the "stable" setup that I use on some operating systems.

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!

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.