dim is a lua plugin for neovim to dim the unused variables and functions using lsp and treesitter.
dim_lua_preview.mp4
- dim unused variables and functions using lsp and treesitter.
- Neovim >= 0.6.0
Install the plugin with your preferred package manager:
-- Lua
{
"0oAstro/dim.lua",
dependencies = { "nvim-treesitter/nvim-treesitter", "neovim/nvim-lspconfig" },
},-- Lua
use {
"0oAstro/dim.lua",
requires = { "nvim-treesitter/nvim-treesitter", "neovim/nvim-lspconfig" },
config = function()
require('dim').setup({})
end
}" Vim Script
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-treesitter/nvim-treesitter'
Plug '0oAstro/dim.lua'
lua require('dim').setup({})Dim comes with the following defaults:
{
disable_lsp_decorations = false -- disable virt text and underline by lsp on unused vars and functions
}| LSPs | Status |
|---|---|
| tsserver | ✔️ |
| sumneko_lua | ✔️ |
| rust_analyzer | ✔️ |
| jdtls | ✔️ |