Giter Club home page Giter Club logo

Comments (1)

stevearc avatar stevearc commented on June 7, 2024

Nope! This is a bit needlessly complex because of the extra-lazy loading logic that I don't think is really required anymore. setup() is split into two parts: there's the initial call to setup() which does as little work as possible (for startup time). It creates commands and autocmds, and stores the config options for later. Only at some future point when we're actually using aerial (we run a command, call an API function, etc) do we perform the second half, do_setup() which creates highlight groups, more autocmds, and some other work. It also sets initialized = true.

So coming back to this line, when you call setup(), if-and-only-if we have already completed this second step of running do_setup once before, call it again now. If we haven't called do_setup before, don't do it right now because we want to put that work off for as long as possible.

from aerial.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.