Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0oAstro/dim.lua
Dim unused words in neovim
https://github.com/0oAstro/dim.lua
Last synced: 3 days ago
JSON representation
Dim unused words in neovim
- Host: GitHub
- URL: https://github.com/0oAstro/dim.lua
- Owner: 0oAstro
- Archived: true
- Created: 2022-03-08T15:01:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T16:07:03.000Z (about 1 year ago)
- Last Synced: 2024-08-02T13:34:00.354Z (3 months ago)
- Language: Lua
- Size: 41 KB
- Stars: 144
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 | ✔️ |