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

Latest commit

 

History

History
70 lines (50 loc) · 1.41 KB

README.md

File metadata and controls

70 lines (50 loc) · 1.41 KB

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