winston0410 / range-highlight.nvim

An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
MIT License
203 stars 5 forks source link

Added lazy.nvim support to README #18

Closed olinpin closed 6 months ago

olinpin commented 1 year ago

I added a lazy.nvim documentation to the readme

mikavilpas commented 7 months ago

Another option that apparently lazy loads the plugin when entering command line mode:

(I found this by searching github from here https://github.com/Wansmer/nvim-config/blob/cae2be77a47123bd2e4420ed11fbef0247ae28df/lua/config/plugins/range-highlight.lua#L2)

return {
  "winston0410/range-highlight.nvim",
  enabled = true,
  event = { "CmdlineEnter" },
  dependencies = { "winston0410/cmd-parser.nvim" },
  config = function()
    require("range-highlight").setup({})
  end,
}