This configuration is based on LazyVim and is tailored for a professional development workflow across multiple languages, with a particular focus on seamless VSCode integration and manual control over code editing.
Comprehensive IDE-like features (LSP, Linting, Formatting, Debugging) for:
- C/C++: Powered by
clangdandcmake-tools.nvim. - Python: Optimized with
basedpyrightandruff. Includesvenv-selector.nvimfor easy virtual environment switching. - Web Development: Full support for TypeScript, JavaScript, HTML, and CSS.
- Data & Config: Specialized handling for SQL (
vim-dadbod), JSON, TOML, YAML, and Docker. - Markdown: Custom reflowing and wrapping (100 columns) via Prettier and
native
textwidthsettings.
- Super-Tab Workflow: A refined
Tabbehavior that prioritizes accepting completion menu suggestions and jumping through snippet placeholders (powered byluasnip). - Clean UI: Rounded borders for completion and documentation menus for a modern look.
- SQL Integration: Integrated
vim-dadbod-completionas a native source forblink.cmp.
Specifically designed to run headlessly as the backend for the VSCode Neovim extension:
- Action Delegation: Native VSCode actions are mapped to standard Neovim
keybindings (e.g.,
<leader>ggfor Git,<leader>fffor Quick Open,<leader>cafor Code Actions). - UI Optimization: Automatically disables UI-heavy plugins (like
noice.nvimandsnacks.nvimanimations) when running in VSCode to prevent visual artifacts and ghost text. - Split & Tab Management: Syncs Neovim's window management with VSCode's editor groups.
- Manual Control:
mini.pairsis disabled to allow for predictable, manual character pairing. - View Centering: Automatically centers the viewport after searching
(
n/N) or large vertical jumps (C-d/C-u). - File Utilities:
- Copy absolute or relative buffer paths with
<leader>fpaand<leader>fpr. - Smart "basename" file picking (ignoring file endings) via custom
snacks.pickerlogic.
- Copy absolute or relative buffer paths with
- Text Manipulation:
- Toggle between Doxygen block and line comments with
<leader>ctd. - Trim trailing whitespace with
<leader>ctw.
- Toggle between Doxygen block and line comments with
- Yank History: Integrated
yanky.nvimfor navigating and searching your yank ring history.
lua/config/: Core options, keymaps, and autocommands.lua/plugins/: Modular plugin configurations and LazyVim extras.lua/utils/: Custom Lua helper functions for complex logic.lua/config/vscode-keymaps.lua: VSCode-specific keybindings, loaded only when in a VSCode environment.