Comments (4)
I can't tell why this really happens, but I believe this has something to do with #158. What I found so far is neodev or lua_ls behaves differently in workspace configuration depending on which directory the language server was launched. In some dirs libraries are loaded well, in other dirs no luck.
from neodev.nvim.
I can't tell why this really happens, but I believe this has something to do with #158. What I found so far is neodev or lua_ls behaves differently in workspace configuration depending on which directory the language server was launched. In some dirs libraries are loaded well, in other dirs no luck.
With commit 3941036 everything works as expected, so I am pretty sure that the change in c6be05a causes problems. I haven't really looked into this though, so I am not sure what the exact problem is.
For now I am just using that commit and everything works fine (both in my after
directory and my local plugin directories).
If you think this is the same issue as in #158, do you think I should just close this as a duplicate?
from neodev.nvim.
Hmm if it's about c6be05a, maybe it is not related to #158. But I'm not quite sure as I lack understanding what's going on here --- @folke can give us a better insight.
from neodev.nvim.
Adding a .luarc.json
in ~/.config/nvim
with
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version": "LuaJIT"
}
fixed my issue with newer commits.
I will leave the issue open for now, in case anyone else runs into this problem, but the problem is solved for me now (feel free to close it).
from neodev.nvim.
Related Issues (20)
- bug: Inconsistent application of `override` function HOT 1
- feature: just get the LSP server settings
- feature: Type inference with lazy `opts` HOT 1
- feature: Resolve symlink
- feature: Possibly generate luacheckrc or selene configs of the neovim API? HOT 4
- bug: `too many open files` when the workspace is large HOT 1
- bug: neodev with lspconfig and custom on_attach HOT 1
- Remove nightly meta annotations conflicting with upstream neovim HOT 1
- New releases?
- bug: example .neoconf.json uses "sumneko_lua" instead of "lua_ls" HOT 2
- bug: Recent attempt to fix the double Lua LSP workspace loading progress seems to break Lua indexes in certain situations HOT 3
- bug: neodev not working with mason-lspconfig HOT 8
- bug:
- bug: Neodev does not load in other worksapce.
- feature: plugin description on hover HOT 1
- bug: Change to use nightly types causes missing types for vim.uv.* HOT 2
- feature: make opts.library.enabled be true even if in directories other than Neovim config HOT 2
- bug: Opening another workspace breaks first workspace's resolved symbols HOT 1
- bug: no completions for single file HOT 7
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 neodev.nvim.