Portable Neovim configuration using lazy.nvim and native LSP (Neovim 0.11+).
git clone git@github.com:itme-brain/nvim.git ~/.config/nvimgit clone --recurse-submodules git@github.com:itme-brain/nixos.git- Native LSP (
vim.lsp.config) - no manual server list needed - Smart LSP picker (
<leader>css) - auto-detects installed servers for current filetype - Portable - works on NixOS (LSPs via extraPackages) or any system (LSPs via Mason)
- Mason - auto-disabled on NixOS, auto-installs essentials elsewhere
On NixOS, LSPs come from:
neovim.extraPackages(global essentials)- Project
devShell(project-specific)
On other systems, Mason auto-installs:
lua_ls- Lua/Neovimnil_ls- Nixbashls- Bash/Shelljsonls- JSONhtml- HTMLcssls- CSSmarksman- Markdowntaplo- TOMLyamlls- YAML
The smart picker (<leader>css) scans all lspconfig servers and shows only those with binaries installed.
| Key | Action |
|---|---|
<leader>css |
Start LSP (smart picker) |
<leader>csx |
Stop LSP |
<leader>csr |
Restart LSP |
<leader>cf |
Format code |
<leader>ca |
Code action |
<leader>cr |
Rename symbol |
gd |
Go to definition |
<leader>gr |
Find references |
<leader>e |
Toggle file explorer |
<leader>bd |
Delete buffer |
<leader>/ |
Live grep |
<leader>ff |
Find files |
- lazy.nvim - plugin manager
- nvim-lspconfig - LSP configurations
- nvim-cmp - completion
- telescope.nvim - fuzzy finder
- nvim-treesitter - syntax highlighting
- neo-tree.nvim - file explorer
- gitsigns.nvim - git integration
- lualine.nvim - statusline
- bufferline.nvim - buffer tabs
- which-key.nvim - keybinding hints