Neovim plugin that dims highlights for unused code (functions, variables, parameters) via LSP diagnostics.
neodim is a Neovim plugin that dims the syntax highlighting of unused code—like functions, variables, and parameters—by using LSP diagnostic tags. It helps developers reduce visual clutter in their codebase by fading out inactive elements, making active code stand out more clearly. The plugin runs efficiently as an LSP handler, providing real-time updates as you edit.
Neovim users who work with language servers and want to visually de-emphasize unused code to improve focus and code readability during development.
Developers choose neodim for its polished, efficient implementation that integrates directly with Neovim's LSP system, offering customizable dimming and decoration controls without the performance overhead of older autocmd-based approaches.
Neovim plugin for dimming the highlights of unused functions, variables, parameters, and more
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Acts as an LSP handler instead of using autocmds, providing efficient, live dimming based on diagnostic data, as highlighted in the README's performance improvements over dim.lua.
Offers alpha and blend_color settings to fine-tune dim intensity and color, allowing precise theming integration, as demonstrated in the configuration examples.
Supports per-filetype regex patterns or disabling, enabling tailored dimming rules for languages like Rust or C#, as shown in the regex option documentation.
Allows hiding of underline, virtual text, and signs for unused diagnostics to reduce clutter, while respecting global vim.diagnostic.config settings for consistency.
Requires language servers with diagnostic tags support; if unavailable, the plugin cannot dim unused code, restricting its use with certain tools or older servers.
Only works with Neovim 0.10.0 or newer, making it unsuitable for users on older versions or stable releases without upgrades, as stated in the requirements.
Users must configure regex patterns and ensure LSP diagnostics are properly set up, which can be challenging for those new to Neovim's LSP features or diagnostic customization.