Comments (6)
I can do it but I just want confirmation if this is the right way to go or maybe I am missing something.
from neotest.
There is absolutely no reason to lazy load neotest, there is no code except in the lua
directory which is only run when manually calling require("neotest")
. vim-ultest had code that ran on startup which is why lazy loading was useful
from neotest.
Its dependencies still load on VimEnter, for example vim-test
, but maybe this issue is out of scope.
from neotest.
Packer supports lazy loading lua modules, so you can use that.
module = string or list -- Specifies Lua module names for require. When requiring a string which starts
-- with one of these module names, the plugin will be loaded.
from neotest.
I think that feature is not related to this problem. it's for naming modules so you can call them in other places.
I ran vim --startuptime h.log
and I got this:
This is what I mean, I noticed a change in the startuptime when switching from the vim-ultest to neotest, Is there a way to just load this plugin when I press certain keys like I used to do in vim-ultest
keys = {
"<Plug>(ultest-run-nearest)",
"<Plug>(ultest-run-file)",
"<Plug>(ultest-summary-toggle)",
},
I know this is just a triviality but I don't like spending 6 ms in neotest-python, 4 ms in neotest.lib 3 ms in neotest-jest.
I don't even use this plugin on a daily basis, I just want to load it when I need it.
from neotest.
module
definitely does lazy load neotest, if you're seeing it load on startup it's because you're calling it in your config. If you don't want to use that, you can define your own mappings that are used for lazy loading
from neotest.
Related Issues (20)
- [BUG] Watcher fails to find the lsp client after update to latest neotest with nio HOT 4
- [BUG] language name error when running any type of python test HOT 1
- [BUG] Cannot run nearest test or all tests from file HOT 6
- [BUG] Doing `gF` inside `neotest-output` floating window opens the file in same float
- [BUG] nested_tests causes test output from stdout/stderr to be printed undesirably
- [BUG] Files containing no tests shouldn't show up in summary
- [BUG] subprocess fails on non-default environments HOT 1
- Passing additional test arguments to runner HOT 1
- Feature Request: Set Notification Levels
- [BUG] Getting error "Future already set" and output_panel is empty for python tests HOT 7
- [Feature Request] Boost.Test supporting HOT 2
- Deprecation warnings on neovim 0.11
- [BUG] Summary opens, but no help HOT 2
- Graciously handling DAP failure on multistep (build then run) languages HOT 1
- [doc] Replace README recommendation of neodev with lazydev
- New Adapter: neotest-ctest - A neotest adapter for C/C++ using CTest as a test runner HOT 1
- [BUG] ImportError while importing test module HOT 3
- [BUG] "No tests found" when opening the summary window rigth before running tests the first time HOT 1
- [BUG] Java file watcher does not work as the jdtls is marked as an invalid lsp HOT 1
- Lazy load adapters HOT 1
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 neotest.