Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert(vim-cursorword): revert back to 'vim-cursorword' #703

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading