• This repository has been archived on 01/Mar/2024
  • Stars
    star
    145
  • Rank 252,869 (Top 6 %)
  • Language
    Lua
  • Created over 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dim unused words in neovim

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 βœ”οΈ
jdtls βœ”οΈ