Skip to content

Commit

Permalink
Re-enable progress bars even if satellite is installed.
Browse files Browse the repository at this point in the history
There's 3 main reasons:

* VSCode shows both left and right bars (similarly, one for the current
  visible lines, one for the whole buffer)
* I haven't yet gotten a chance to send a PR to satellite to enable
  always showing it (right now for files with fewer lines than the
  buffer length it will not automatically show up, leading to no
  progress info unless you have a forked copy of satellite which always
  enables it)
* it's useful to see the progress info for lines on screen in even more
  detail, and satellite will show it smaller if the buffer is large
  • Loading branch information
Julian committed Jan 12, 2025
1 parent 1da3354 commit 27c4dcd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/lean/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

---@tag lean.nvim

local has_satellite = require 'lean.satellite'
local util = require 'lean._util'

local lean = {
Expand Down Expand Up @@ -110,8 +109,7 @@ function lean.setup(opts)
end

opts.progress_bars = opts.progress_bars or {}
-- FIXME: Maybe someone eventually cares about enabling both.
if not has_satellite and opts.progress_bars.enable ~= false then
if opts.progress_bars.enable ~= false then
require('lean.progress_bars').enable(opts.progress_bars)
end

Expand Down

0 comments on commit 27c4dcd

Please sign in to comment.