Plugin Installation Failures
Lazy.nvim Bootstrap Error
If Lazy.nvim fails to bootstrap on first launch: Solution:-
Verify git is installed:
- If missing, install git for your platform
-
Remove the lazy.nvim directory and restart Neovim:
lua/magictt/lazy.lua:1-11 and will automatically clone on first run.
Plugin Installation Hangs
If plugin installation freezes:- Open Lazy panel:
<Space>ln - Press
Xto clear finished tasks - Press
Uto update/retry failed plugins - Check the log output for specific errors
The configuration auto-checks for plugin updates on startup but doesn’t notify to avoid noise (configured in
lua/magictt/lazy.lua:15-18).LSP Not Working
LSP Server Not Attaching
Diagnostic Commands:-
Server not installed:
- Open Mason:
<Space>mm - Check if the required server is installed (✓)
- If not, press
ion the server to install it
- Open Mason:
-
Wrong file type:
- Verify file type:
:set filetype? - Ensure it matches a configured LSP server
- Verify file type:
-
LSP crashed:
- Restart LSP:
<Space>rs - Check messages:
:messages
- Restart LSP:
LSP Keybindings Not Working
LSP keybindings only work when an LSP server is attached to the buffer. Verify:- Run
:LspInfoto confirm server is attached - Check if the file type is supported
- Ensure you’re in Normal mode (not Insert mode)
lua/magictt/lsp.lua:9-51):
gR- Show references (Telescope)gD- Go to declarationgd- Show definitiongi- Show implementationsgt- Show type definitions<Space>ca- Code actions<Space>rn- Rename symbol<Space>d- Show line diagnostics[d/]d- Navigate diagnosticsK- Show documentation
Diagnostics Not Showing
Diagnostics are configured with custom signs and virtual text. Check configuration:lua/magictt/lsp.lua:57-68 with custom icons for errors, warnings, hints, and info.
Treesitter Parsing Errors
Parser Installation Failed
Check installed parsers::TSInstall typescript
The configuration auto-installs parsers for:
json, javascript, typescript, tsx, jsx, yaml, html, css, prisma, markdown, svelte, graphql, bash, lua, vim, dockerfile, gitignore, c, and astro (see lua/magictt/plugins/treesitter.lua:13-36).Syntax Highlighting Broken
Update all parsers:C Compiler Not Found
Treesitter requires a C compiler to build parsers.Mason Installation Issues
Tools Fail to Install
Open Mason UI:<Space>mm
Check installation logs:
- In Mason UI, navigate to a tool
- Press
g?to see help and keybindings - Press
lon a tool to view installation logs
-
Missing dependencies:
- Node.js/npm for JavaScript tools
- Python/pip for Python tools
- Go for Go-based tools
-
Network issues:
- Check internet connection
- Try installing manually from terminal
-
Permission errors:
- Ensure write permissions to
~/.local/share/nvim/mason/
- Ensure write permissions to
The configuration uses
mason-tool-installer to automatically ensure installation of: prettier, stylua, isort, black, pylint, and eslint_d (see lua/magictt/plugins/lsp/mason.lua:39-46).Mason UI Not Opening
Verify Mason is installed:mason.nvim in the plugin list.
Force reinstall:
- Open Lazy:
<Space>ln - Find
mason.nvim - Press
Xto clean - Press
Ito reinstall
Keybinding Conflicts
Custom Keybindings Not Working
The leader key is set to<Space> (see lua/magictt/core/keymaps.lua:2).
Check if keybinding exists:
Plugin Keybindings Conflict
Some plugins may override core keybindings. Check which plugin owns a keybinding:Telescope Keybindings Not Working
Telescope keybindings are defined in
lua/magictt/plugins/telescope.lua:29-36:<Space>ff- Find files<Space>fr- Recent files<Space>fs- Live grep (search string)<Space>fc- Grep string under cursor<Space>ft- Find todos
:Telescope
Performance Issues
Slow Startup Time
Check startup time:startup.log to identify slow plugins.
Lazy loading is enabled for most plugins. The Treesitter plugin is set to lazy = false (see lua/magictt/plugins/treesitter.lua:3) because it’s essential for syntax highlighting.
Sluggish LSP Performance
Large files: LSP may be slow on very large files. Disable LSP for current buffer:<Space>rs
High Memory Usage
Check memory usage:- Close unused buffers:
:bufdo bd(careful!) - Restart Neovim
- Disable auto-session if enabled
File Explorer Issues
Nvim-tree Not Opening
Keybindings (seelua/magictt/plugins/nvim-tree.lua:48-54):
<Space>ee- Toggle file explorer<Space>ef- Toggle on current file<Space>ec- Collapse file explorer<Space>er- Refresh file explorer
Netrw Conflicts
Netrw is disabled in favor of nvim-tree (see
lua/magictt/plugins/nvim-tree.lua:8-9).1.
Auto-format Issues
Format on Save Not Working
Auto-format is configured for JavaScript and TypeScript files only (seelua/magictt/plugins/lsp/lsp.lua:19-24).
Manual format:
Formatter Not Installed
Ensure formatters are installed via Mason:- Prettier - JavaScript/TypeScript/HTML/CSS/etc.
- Stylua - Lua
- Black - Python
- isort - Python imports
<Space>mm) or install manually: