Skip to content

My "custom" neovim config written in Lua. Inspired by LunarVim and others.

License

Notifications You must be signed in to change notification settings

Samyak2/nvim-config

Repository files navigation

Neovim configuration files

My custom neovim configuration written in (mostly) lua.

Requirements

  • neovim v0.9.5 (untested on other versions, might work)
  • ripgrep
    • for telescope fuzzy finding in files
  • go (>=1.16)
    • to install efm which provides linting and formatting for many languages
  • gcc
    • to build treesitter parsers
    • only needed when the treesitter plugin is installed/updated
    • If you use nix, see shell.nix that includes dependencies for this
  • (optional) yarn

Usage

  • Plugins
    • See Lazy.nvim
    • Use :Lazy sync to update plugins
  • LSP
    • After opening a file you want LSP support for, run :LspInstall and select the server you want installed. Restart neovim after it completes. This uses mason-lspconfig.nvim
    • See lua/lsp/init.lua for keybinds set for LSP stuff

Code structure

All lua files are formatted using stylua.

  • init.lua: main file which Neovim loads
  • vimscript: legacy vimscript stuff that could not be ported over to Lua
  • lua
    • plugins/
      • If you don't want/need some of them, simply delete those files
    • lsps.lua and lsp/
    • misc.lua: other configurations such as line numbers, splits, tabs, whitespaces, colorschemes, etc.
    • Other files are plugin-specific configurations. I should probably move them.

About

My "custom" neovim config written in Lua. Inspired by LunarVim and others.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages