Skip to content

Commit

Permalink
revert(vim-cursorword): revert back to 'vim-cursorword' (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Feb 14, 2025
1 parent 3a65cf5 commit d5cff95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
uses: actions/checkout@v4
- uses: stevearc/nvim-typecheck-action@v2
with:
nvim-version: v0.10.3
path: lua
configpath: ".luarc.json"
selene:
Expand Down
20 changes: 5 additions & 15 deletions lua/configs/RRethy/vim-illuminate/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,11 @@ require("illuminate").configure({
})

-- highlight style
local illuminate_augroup = vim.api.nvim_create_augroup("illuminate_augroup", { clear = true })
vim.api.nvim_create_autocmd({ "UIEnter", "VimEnter", "Colorscheme" }, {
group = illuminate_augroup,
local vim_illuminate_augroup =
vim.api.nvim_create_augroup("vim_illuminate_augroup", { clear = true })
vim.api.nvim_create_autocmd({ "UIEnter", "BufReadPre", "BufNewFile" }, {
group = vim_illuminate_augroup,
callback = function()
vim.schedule(function()
local cl = vim.api.nvim_get_hl(0, { name = "CursorLine", link = false }) --[[@as table]]
cl.bold = true
cl.underline = true
if type(cl.cterm) ~= "table" then
cl.cterm = {}
end
cl.cterm.bold = true
cl.cterm.underline = true
cl.force = true
vim.api.nvim_set_hl(0, "illuminatedWord", cl)
end)
vim.cmd([[hi illuminatedWord cterm=underline gui=underline]])
end,
})
4 changes: 2 additions & 2 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ local M = {
-- ---- HIGHLIGHT ----

{
"RRethy/vim-illuminate",
"itchyny/vim-cursorword",
event = { VeryLazy },
config = lua_config("RRethy/vim-illuminate"),
init = lua_init("itchyny/vim-cursorword"),
},
{
"brenoprata10/nvim-highlight-colors",
Expand Down

0 comments on commit d5cff95

Please sign in to comment.