You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A minimal, fast Neovim configuration written in Lua, using lazy.nvim as the plugin manager. It provides LSP, autocompletion, Treesitter highlighting, fuzzy finding, a file explorer, an integrated terminal, and the Oxocarbon theme.
# Back up any existing config
mv ~/.config/nvim ~/.config/nvim.bak
# Clone this repo
git clone https://github.com/cauerast/neovim.git ~/.config/nvim
# Start Neovim — lazy.nvim bootstraps itself and installs all plugins
nvim
Structure
.
├── init.lua # General options, loads keymaps and lazy.nvim
├── lazy-lock.json # Pinned plugin versions
└── lua
├── config
│ ├── keymaps.lua # Leader key and global keymaps
│ └── lazy.lua # lazy.nvim bootstrap and setup
└── plugins
├── autocomplete.lua # nvim-cmp + LuaSnip
├── autopairs.lua # nvim-autopairs
├── lsp.lua # LSP servers and keymaps
├── neo-tree.lua # File tree
├── oil.lua # Edit the filesystem like a buffer
├── telescope.lua # Fuzzy finder
├── theme.lua # Oxocarbon colorscheme
├── toggleterm.lua # Integrated terminal
├── treesitter.lua # Syntax highlighting and indent
└── ui.lua # Statusline and bufferline
Install them separately (e.g. via your package manager, npm, go install, or pip). Servers that aren't installed are simply ignored, so remove any you don't need from lua/plugins/lsp.lua.
clangd is configured with --compile-commands-dir=build, so generate compile_commands.json in a build/ directory (e.g. cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON).
jdtls requires a working Java setup and may need extra configuration for your projects.
Treesitter
Parsers installed automatically: c, cpp, lua, vim, vimdoc, typescript, javascript, tsx, html, css, go, markdown, python, java, rust. Highlighting is skipped for files larger than 100 KB.
Customization
Add a new plugin by creating a file in lua/plugins/ that returns a lazy.nvim spec; it is imported automatically.
Add a language server by including its name in vim.lsp.enable({...}) in lua/plugins/lsp.lua.