You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 6, 2024. It is now read-only.
I've been having a hard time setting up neodev and have been doing my best to debug it. I currently have neodev as a dependency for neovim/nvim-lspconfig to ensure that it is setup first, as specified in the docs.
I started noticing a popup - in the directories that neodev is expected to work, such as ./lua and nvim config directory - that was asking "Do you need to configure your work environment as luv?". It has 3 options: "Apply and modify settings", "Apply but do not modify settings", and "Don't show again".
If I select "Apply and modify settings", it creates a .luarc.json file in the current directory, and neodev works correctly.
If I select "Apply but do not modify settings", neodev works correctly for the current session but prompts me every time I edit in this directory.
If I select "Don't show again", it appears to be the same as selecting "Apply and modify settings", as a .luarc.json file is created, and neodev works as expected.
I noticed that there is some importance placed on .luarc.json for setting up jsonls, but I don't see why this would be causing this popup. I also noted that the popup itself doesn't appear to be occurring from within the neodev code directly: grep didn't show the popup message or options.
How can I setup neodev to work correctly without creating a .luarc.json file in every directory, and without prompting me for confirmation on every entry?
Edit: I seem to have found the solution to my issue here. When setting up lua_ls, passing settings.Lua.workspace.checkThirdParty = false appears to have the same behavior as auto-selecting the second option from the popup: neodev works in the buffer but a .luarc.json file is not created.
I'm mostly leaving the discussion open now to see if this is the expected/accepted solution to this issue, or if there is a better approach to solving this.
Edit 2: Was going through the closed issues and saw exactly this solution. Should have done my due diligence
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been having a hard time setting up
neodev
and have been doing my best to debug it. I currently haveneodev
as a dependency forneovim/nvim-lspconfig
to ensure that it is setup first, as specified in the docs.I started noticing a popup - in the directories that
neodev
is expected to work, such as ./lua and nvim config directory - that was asking "Do you need to configure your work environment asluv
?". It has 3 options: "Apply and modify settings", "Apply but do not modify settings", and "Don't show again".If I select "Apply and modify settings", it creates a
.luarc.json
file in the current directory, and neodev works correctly.If I select "Apply but do not modify settings", neodev works correctly for the current session but prompts me every time I edit in this directory.
If I select "Don't show again", it appears to be the same as selecting "Apply and modify settings", as a
.luarc.json
file is created, and neodev works as expected.I noticed that there is some importance placed on
.luarc.json
for setting upjsonls
, but I don't see why this would be causing this popup. I also noted that the popup itself doesn't appear to be occurring from within theneodev
code directly: grep didn't show the popup message or options.How can I setup
neodev
to work correctly without creating a.luarc.json
file in every directory, and without prompting me for confirmation on every entry?Edit: I seem to have found the solution to my issue here. When setting up
lua_ls
, passingsettings.Lua.workspace.checkThirdParty = false
appears to have the same behavior as auto-selecting the second option from the popup: neodev works in the buffer but a.luarc.json
file is not created.I'm mostly leaving the discussion open now to see if this is the expected/accepted solution to this issue, or if there is a better approach to solving this.
Edit 2: Was going through the closed issues and saw exactly this solution. Should have done my due diligence
Beta Was this translation helpful? Give feedback.
All reactions