Skip to content

Commit

Permalink
feat(plugins)!: Remove neodim
Browse files Browse the repository at this point in the history
This commit removes neodim because it's been two years since semantic tokens
were introduced in LSP Specification 3.16.0, and it seems like most servers have
adopted all those features by now. Plus, this plugin has been buggy at times as
noted in previous issues, and it can be a hassle to troubleshoot.

Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Oct 27, 2024
1 parent a22c2d5 commit 776be2d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 56 deletions.
37 changes: 0 additions & 37 deletions lua/modules/configs/ui/neodim.lua

This file was deleted.

5 changes: 0 additions & 5 deletions lua/modules/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ ui["nvim-lualine/lualine.nvim"] = {
event = { "BufReadPost", "BufAdd", "BufNewFile" },
config = require("ui.lualine"),
}
ui["zbirenbaum/neodim"] = {
lazy = true,
event = "LspAttach",
config = require("ui.neodim"),
}
ui["karb94/neoscroll.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
Expand Down
14 changes: 0 additions & 14 deletions lua/modules/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,6 @@ function M.gen_alpha_hl()
set_global_hl("AlphaFooter", colors.yellow)
end

-- Generate blend_color for neodim.
function M.gen_neodim_blend_attr()
local trans_bg = require("core.settings").transparent_background
local appearance = require("core.settings").background

if trans_bg and appearance == "dark" then
return "#000000"
elseif trans_bg and appearance == "light" then
return "#FFFFFF"
else
return M.hl_to_rgb("Normal", true)
end
end

---Convert number (0/1) to boolean
---@param value number @The value to check
---@return boolean|nil @Returns nil if failed
Expand Down

0 comments on commit 776be2d

Please sign in to comment.