Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0oAstro/dim.lua

Dim unused words in neovim
https://github.com/0oAstro/dim.lua

Last synced: 4 days ago
JSON representation

Dim unused words in neovim

Awesome Lists containing this project

README

        

# Dim

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

## ✨ Features

- **dim** unused variables and functions using lsp and treesitter.

## ⚡️ Requirements

- Neovim >= 0.6.0

## 📦 Installation

Install the plugin with your preferred package manager:

### [lazy](https://github.com/folke/lazy.nvim)

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

### [packer](https://github.com/wbthomason/packer.nvim)

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

### [vim-plug](https://github.com/junegunn/vim-plug)

```vim
" 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:

```lua
{
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 | ✔️ |