Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(projectmgr-nvim): disable lazy loading #605

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

muhfaris
Copy link
Contributor

📑 Description

just copy the projectmgr.nvim config and paste to my astro config, but got error like belowa

E5108: Error executing lua: ...hare/nvim/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:50: attempt to index field 'config' (a nil value)
stack traceback:
        ...hare/nvim/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:50: in function 'close_project'
        ...hare/nvim/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:16: in function 'open_project'
        ...lazy/projectmgr.nvim/lua/projectmgr/telescope_picker.lua:46: in function 'run_replace_or_original'
        ...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:253: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:252>

ℹ Additional Information

Astro version: 3.37.6
Nvim version: v0.9.4

@github-actions
Copy link

github-actions bot commented Oct 14, 2023

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

  • If you are adding a new plugin, the scope would be the name of the category it is being added into. ex. feat(utility): added noice.nvim plugin

  • If you are modifying a pre-existing plugin or pack, the scope would be the name of the plugin folder. ex. fix(noice-nvim): fix LSP handler error

  • Pull request title has the appropriate conventional commit type and scope where the scope is the name of the pre-existing directory in the project as described above

  • README is properly formatted and uses fenced in links with <url> unless they are inside a [title](url)

  • Proper usage of opts table rather than setting things up with the config function.

@muhfaris muhfaris changed the title fix(projectmgr.nvim): initialize projectmgr-nvim fix(projectmgr-nvim): initialize projectmgr-nvim Oct 14, 2023
@Uzaaft Uzaaft changed the title fix(projectmgr-nvim): initialize projectmgr-nvim fix(projectmgr-nvim): disable lazy loading Oct 14, 2023
@Uzaaft Uzaaft merged commit fc631bf into AstroNvim:main Oct 14, 2023
@muhfaris muhfaris deleted the fix/initialize-projectmgr-nvim branch October 14, 2023 08:52
Ryex added a commit to Ryex/astrocommunity that referenced this pull request May 14, 2024
redo AstroNvim#605

prevent errors like 
```
E5108: Error executing lua: ...nvim-data/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:20: attempt to index field 'config' (a nil value)
stack traceback:
	...nvim-data/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:20: in function 'open_project'
	...lazy/projectmgr.nvim/lua/projectmgr/telescope_picker.lua:46: in function 'run_replace_or_original'
	...im-data/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...nvim-data/lazy/telescope.nvim/lua/telescope/mappings.lua:253: in function <...nvim-data/lazy/telescope.nvim/lua/telescope/mappings.lua:252>
```
mehalter pushed a commit that referenced this pull request May 14, 2024
* fix(projectmgr-nvim): disable lazy loading

redo #605

prevent errors like 
```
E5108: Error executing lua: ...nvim-data/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:20: attempt to index field 'config' (a nil value)
stack traceback:
	...nvim-data/lazy/projectmgr.nvim/lua/projectmgr/manage.lua:20: in function 'open_project'
	...lazy/projectmgr.nvim/lua/projectmgr/telescope_picker.lua:46: in function 'run_replace_or_original'
	...im-data/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...nvim-data/lazy/telescope.nvim/lua/telescope/mappings.lua:253: in function <...nvim-data/lazy/telescope.nvim/lua/telescope/mappings.lua:252>
```

* fix(projectmgr-nvim): drop `VeryLazy` event

Co-authored-by: Uzair Aftab <[email protected]>

---------

Co-authored-by: Uzair Aftab <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants