Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

0oAstro/dim.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

-- 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({})

⚙️ 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 ✔️

About

Dim unused words in neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published