diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 75b3ff3..7bb5d51 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -1,6 +1,5 @@ return { - -- Dimming the highlights of unused functions, variables, parameters, and more. { 'zbirenbaum/neodim', enabled = false, @@ -144,9 +143,4 @@ return { } end, }, - { - 'davidmh/mdx.nvim', - config = true, - dependencies = { 'nvim-treesitter/nvim-treesitter' }, - }, } diff --git a/lua/plugins/languages.lua b/lua/plugins/languages.lua index b4b752d..a46144c 100644 --- a/lua/plugins/languages.lua +++ b/lua/plugins/languages.lua @@ -136,4 +136,10 @@ return { require('treesj').setup() end, }, + + { + 'davidmh/mdx.nvim', + config = true, + dependencies = { 'nvim-treesitter/nvim-treesitter' }, + }, } diff --git a/lua/plugins/utility.lua b/lua/plugins/utility.lua index 462a5eb..cb8494d 100755 --- a/lua/plugins/utility.lua +++ b/lua/plugins/utility.lua @@ -272,4 +272,29 @@ return { { 'fL', 'zL', desc = 'Half screen to the right' }, }, }, + + -- Dimming the highlights of unused functions, variables, parameters, and more. + { + 'zbirenbaum/neodim', + enabled = false, + event = 'LspAttach', + config = function() + require('neodim').setup({ + alpha = 0.5, + blend_color = nil, + hide = { + underline = true, + virtual_text = true, + signs = true, + }, + regex = { + '[uU]nused', + '[nN]ever [rR]ead', + '[nN]ot [rR]ead', + }, + priority = 128, + disable = {}, + }) + end, + }, }