Neovim as an IDE: minimal built-in LSP on 0.12
Neovim 0.12 ships LSP and treesitter built in — you get completion, jump-to-definition and diagnostics with zero plugins. Exhaust the built-ins first; add plugins only when they fall short.
Install
Section titled “Install”sudo dnf install -y neovimnvim --version | head -1Measured NVIM v0.12.5. You also need a C compiler (treesitter grammars compile locally):
sudo dnf install -y gcc makeA plugin-free starting config
Section titled “A plugin-free starting config”~/.config/nvim/init.lua:
-- basic editingvim.opt.number = truevim.opt.relativenumber = truevim.opt.expandtab = truevim.opt.shiftwidth = 4vim.opt.termguicolors = truevim.opt.updatetime = 300
-- LSP: the declarative config since 0.12vim.lsp.config('pyright', { cmd = { 'pyright-langserver', '--stdio' }, filetypes = { 'python' },})vim.lsp.config('lua_ls', { cmd = { 'lua-language-server' }, filetypes = { 'lua' },})vim.lsp.enable({ 'pyright', 'lua_ls' })
-- keymaps on LSP attachvim.api.nvim_create_autocmd('LspAttach', { callback = function(ev) local map = function(keys, fn, desc) vim.keymap.set('n', keys, fn, { buffer = ev.buf, desc = desc }) end map('gd', vim.lsp.buf.definition, 'go to definition') map('K', vim.lsp.buf.hover, 'hover docs') map('gr', vim.lsp.buf.references, 'references') map('<leader>rn', vim.lsp.buf.rename, 'rename') end,})
-- diagnostics displayvim.diagnostic.config({ virtual_text = true, signs = true })Install language servers
Section titled “Install language servers”The config only declares how to connect; the servers themselves are separate installs:
| Language | Server | Fedora repo |
|---|---|---|
| Python | python3-pyright (or pip pyright) | yes |
| Lua | lua-language-server | yes |
| Rust | rust-analyzer via rustup | rust-analyzer in repo |
| C/C++ | clangd | yes (clang-tools-extra) |
sudo dnf install -y python3-pyright lua-language-server clangdOpen a matching file and :LspInfo (or :checkhealth vim.lsp on 0.12) confirms attachment.
treesitter: better highlighting
Section titled “treesitter: better highlighting”:TSInstall python luatreesitter is built into nvim (:TSInstall works out of the box); grammars install and compile on demand — which is why gcc was on the install list.
Honest comparison with VS Code
Section titled “Honest comparison with VS Code”| Capability | VS Code | NVim 0.12 built-in |
|---|---|---|
| completion | plugin | LSP + Ctrl-x Ctrl-o (omnifunc) |
| definition/references | F12/Shift-F12 | gd/gr |
| rename | F2 | vim.lsp.buf.rename |
| inline diagnostics | native UI | virtual_text enabled |
| file tree | sidebar | plugin (or built-in :Ex) |
| fuzzy finder | Ctrl-P | plugin (telescope) |
The built-ins cover the core of LSP; file trees and fuzzy finding are where plugins earn their place.
Do you need a plugin manager yet?
Section titled “Do you need a plugin manager yet?”Not at the start. Manually require files under ~/.config/nvim/lua/. When you genuinely need telescope or a completion engine (blink/cmp), bring in lazy.nvim — by then you know exactly what you are missing.
Common traps
Section titled “Common traps”| Symptom | Cause |
|---|---|
:LspInfo shows no client | server not installed or not on PATH; which pyright-langserver |
| treesitter install fails | gcc/make missing |
| completion never pops | built-in LSP ships no completion UI; Ctrl-x Ctrl-o manually or add a plugin |
| init.lua edits ignored | restart nvim or :source the file |
| mojibake in filenames | terminal font issue, see terminals |
Related pages
Section titled “Related pages”- Editors — installing vim/neovim
- Git, fully — signed commits
- VS Code — the other path
- Upstream: Neovim LSP guide