lean.nvim icon indicating copy to clipboard operation
lean.nvim copied to clipboard

Make calling require'lean'.setup{} idempotent

Open Julian opened this issue 2 years ago • 1 comments

Users occasionally will put this in a file they reload or re-source, so it'd be nice if it were able to be run multiple times.

Right now most of the state issues are simply with initializing global configuration, so this may not be too difficult to do.

(See #132 for some context.)

Relates to #39.

Julian avatar Oct 04 '21 19:10 Julian

the solution in my config

local success, err = pcall(function ()
  require('lean').setup{}
end)
if not success then
  print(err)
end

4e554c4c avatar Jul 27 '22 23:07 4e554c4c