Comments (6)
I've opened a separate issue and PR to resolve the issue, this one can be closed.
from nvim-ide.
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.
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.
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.
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.
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)
- Can you provide a docker image?
- Error on neovim exit HOT 7
- newlines in Outline causing error HOT 7
- Option to prevent terminal browser auto open on start HOT 2
- Cannot leave terminal in VI mode HOT 1
- Error while calling lua chunk: attempt to index a boolean value in nvim-ide plugin HOT 1
- "Unknown function: rand" Error while loading nvim-ide HOT 2
- When there are other panels (dap-ui), opening a diff would messed up the layout
- `:Workspace RightPanelToggle` from a keymap doesn't work the first time, unless you do a keymap for `:Workspace LeftPanelToggle` first HOT 2
- Attempt to concatenate field 'name' (a nil value) HOT 9
- Expected lua string HOT 6
- error on focus of hidden component
- Warning at launch HOT 2
- Fail to expand file Explorer HOT 4
- Question mark icons in outline even when nerd font is installed HOT 3
- Explorer holds on to cwd when tab was created HOT 6
- Error when starting more than one terminal from terminal browser HOT 5
- Explorer: When you create a file, if cursor is over a non-expanded directory, it should create the file in the parent directory HOT 4
- More questions than problems HOT 1
- Panel size changes when terminal is created HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-ide.