Skip to content

psugrg/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Configuration

This neovim is configured in lua.

ℹ️ Type :h rtp for detaile about the neovim startup configuration procedure

Structure

  • init.lua - root file where neovim starts looking for configuration (lua modue style)
  • lua - Everything inside of the lua directory will automatically sourced by neovim
    • psu - user defined configuration (psu in this case). It's a lua module for convinience
      • init.lua - module initialization file1
      • set.lua - neovim basic configuration (e.g. line numbers, tabs-to-space, tab width etc.)
      • remap.lua - custom key mapping
      • lazy.lua - plugin manager configuration
      • plugins - plugins (and colorschemes) configuration
        • ... - plugin configurations (one per file)

Plugins & Color Schemes

It's inspired by youtube video from Josean Martinez.

⚡ This configuration uses the lazy.nvim as a package manager

ℹ️ Use :Lazy to spawn lazy.nvim plugin manager UI

ℹ️ Color schemes are managed also by the package manager

ℹ️ Use :checkhealth <name_of_plugin> to inspect the plugin

Adding New Plugin

  1. Find your new plugin on github (e.g.: nvim-treesitter).
  2. Create a configuration file in the ./lua/psu/plugin directory using a following scheme:
return {
    "plugin-name/neovim",
    config = function()
        require('plugin-name').setup({
            -- Add setup code here (if needed)
        })

    -- Add extra configuration here (like key-mapping etc.)

    end
}

ℹ️ Using config is optional and required only of a plugin has a setup function that is required to be called

Footnotes

  1. In lua folder can also be a module if it contains the init.lua file

About

My Neovim configuration

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages