Coder Social home page Coder Social logo

Comments (6)

mrjones2014 avatar mrjones2014 commented on June 30, 2024 1

I've opened a separate issue and PR to resolve the issue, this one can be closed.

from nvim-ide.

ldelossa avatar ldelossa commented on June 30, 2024

Try it without anything provided to "setup" at all?

I dont use Packer, but if you literally see nothing, I think this maybe a local issue, and not an issue with the plugin.

from nvim-ide.

mrjones2014 avatar mrjones2014 commented on June 30, 2024

This is not exactly related since OP isn't doing it, but I did notice that if you lazy load with packer, the only lazy-loading mechanism that works is using the VimEnter autocmd event, which kinda defeats the purpose of lazy loading.

Ideally I'd like to be able to lazy-load so that nvim-ide only loads when I issue the :Workspace command, which you can do with packer like so:

  use {
    "ldelossa/nvim-ide",
    cmd = 'Workspace',
    module = 'ide', -- also load if anything tries to `require('ide')`
    config = function()
      require("ide").setup()
    end
  }

However when I set up like this, the :Workspace command is not created and it doesn't seem to work at all.

I'm not sure what exactly the issue is but something about nvim-ide is incompatible with lazy-loading, which IMO is actually a kind of big problem because it is the largest contributor to my startup time. Before adding nvim-ide, it was about 60ms, now its about 110ms.

from nvim-ide.

ldelossa avatar ldelossa commented on June 30, 2024

The setup function is pretty simple, it starts a "WorkspaceController" which then implements all the smarts. You can debug this. TBH, packer has always been a nightmare for me, with the caching and compiling just never working smoothly.

from nvim-ide.

Integralist avatar Integralist commented on June 30, 2024

FYI my original issue is fixed and was a user error it seems (although I had recompiled packer, it didn't take effect until today -- honestly no idea why because I don't use any cache plugins like impatient.nvim anymore due to similar issues where caching was causing me problems seeing updated config).

So with this in mind should I close this issue and @mrjones2014 open a separate issue for the lazy loading problem, or would you prefer this issue kept open?

from nvim-ide.

mrjones2014 avatar mrjones2014 commented on June 30, 2024

I think it makes more sense for me to open a new issue and we can discuss lazy loading specifically there.

from nvim-ide.

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.