Skip to content
fischerling edited this page Oct 5, 2023 · 13 revisions

A list of community-provided patches.

  • smartcase and literal search options
    A sample setup, where / searches for fixed strings, g/ - for regular expressions:
    vis.events.subscribe(vis.events.INIT, function()
        vis:command'set smartcase on'
        vis:map(vis.modes.NORMAL, '/', function() vis:command'set literal on' vis:feedkeys'<vis-search-forward>' end)
        vis:map(vis.modes.NORMAL, 'g/', function() vis:command'set literal off' vis:feedkeys'<vis-search-forward>' end)
    end)
  • operator to add cursors on each line of a textobject/motion
    It's mapped to <C-v> by default, as, at least in some cases, it resembles visual block mode in vim.
  • Allow lua to style the line numbers
    This allows vis-lspc to subliminally notify about available diagnostics without interfering with highlighted text.
Clone this wiki locally