Skip to content
Discussion options

You must be logged in to vote
-- Variant 1. Hidden `search`, can be toggled with `<C-g>`
vim.schedule(function()
  local input = require 'snacks.picker.core.input'
  local statuscolumn = input.statuscolumn
  input.statuscolumn = function(self)
    if self.picker.opts.no_status == true then
      return ' '
    else
      return statuscolumn(self)
    end
  end
end)
-- Variant 2. Appears permanently after toggling the live mode twice with `<C-g>`
vim.schedule(function()
  local live, live_changed
  local input = require 'snacks.picker.core.input'
  local statuscolumn = input.statuscolumn
  input.statuscolumn = function(self)
    local opts = self.picker.opts
    if not live_changed then
      live_changed = live ~= nil a…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@drowning-cat
Comment options

@dpetka2001
Comment options

@drowning-cat
Comment options

@drowning-cat
Comment options

@dpetka2001
Comment options

Answer selected by valterschutz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants