Skip to content

Commit

Permalink
perf(illuminate): switch from vim-illuminate to mini.cursorword
Browse files Browse the repository at this point in the history
Switch from vimscript to a pure lua plugin for faster performance with no noticeable difference
  • Loading branch information
daUnknownCoder committed Feb 23, 2024
1 parent c3b4cc6 commit 26dc99d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/NeutronVim/plugins/Utils/miscellaneous.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ return {
},
-- Illuminating equivalent words in current buffer under the cursor
{
"RRethy/vim-illuminate",
"echasnovski/mini.cursorword",
version = "*",
event = { "BufReadPre", "BufNewFile" },
lazy = true,
opts = {
delay = 500,
large_file_cutoff = 5000,
},
config = function(_, opts)
local status_ok, illuminate = pcall(require, "illuminate")
local status_ok, curword = pcall(require, "mini.cursorword")
if not status_ok then
print("illuminate not found!")
print("cursorword not found!")
end
illuminate.configure(opts)
curword.setup(opts)
end,
},
-- Useless but looks good :D
Expand Down

0 comments on commit 26dc99d

Please sign in to comment.