Home

Awesome

Dim

dim is a lua plugin for neovim to dim the unused variables and functions using lsp and treesitter.

<video src = "https://user-images.githubusercontent.com/79555780/157270883-da3120c8-b8b2-4036-8063-3b5ce10d4d88.mp4"></video>

✨ Features

⚡️ Requirements

📦 Installation

Install the plugin with your preferred package manager:

lazy

-- Lua
{
  "0oAstro/dim.lua",
  dependencies = { "nvim-treesitter/nvim-treesitter", "neovim/nvim-lspconfig" },
},

packer

-- Lua
use {
  "0oAstro/dim.lua",
  requires = { "nvim-treesitter/nvim-treesitter", "neovim/nvim-lspconfig" },
  config = function()
    require('dim').setup({})
  end
}

vim-plug

" Vim Script
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-treesitter/nvim-treesitter'
Plug '0oAstro/dim.lua'

lua require('dim').setup({})

⚙️ Configuratioon

Dim comes with the following defaults:

{
  disable_lsp_decorations = false -- disable virt text and underline by lsp on unused vars and functions
}

Tested LSPs

LSPsStatus
tsserver✔️
sumneko_lua✔️
rust_analyzer✔️
jdtls✔️