akinsho / dim.lua

Dim unused words in neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dim

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

dim_lua_preview.mp4

✨ Features

  • dim unused variables and functions using lsp and treesitter.

⚡️ Requirements

  • Neovim >= 0.6.0

📦 Installation

Install the plugin with your preferred package manager:

packer

-- Lua
use {
  "narutoxy/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 'narutoxy/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

LSPs Status
tsserver ✔️
sumneko_lua ✔️
rust_analyzer ✔️

About

Dim unused words in neovim


Languages

Language:Lua 97.2%Language:Python 2.8%