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

module completion suggestions missing first characters #269

Closed
HiPhish opened this issue Nov 24, 2020 · 0 comments
Closed

module completion suggestions missing first characters #269

HiPhish opened this issue Nov 24, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@HiPhish
Copy link

HiPhish commented Nov 24, 2020

Hello,

When trying to complete the name of a module for require I noticed a few issues:

  • some of the module names are missing their first character. For example, if I type require' the suggestions will include ello instead of hello, ennel instead of fennel, doc instea of ldoc, arkdown instead of markdown, and so on.
  • Modules from sub-directories are included without prefix, i.e. instead of pl.class I see class (from `~/.luarocks/)

Commit: f220b54
OS: Void Linux
Client: Neovim with built-in LSP client
Server settings:

Lua =
  completion = {
    callSnippet = "Both",
  },
  runtime = {
    version = "Lua 5.3",
  },
  workspace = {
    library = {
      ["/home/hiphish/.luarocks/share/lua/5.3"] = true,
      ["/usr/share/lua/5.3"] = true,
    },
    maxPreload = 1000,
    preloadFileSize = 1000,
  },
}

It appears that the server searches the directories from Lua.workspace.directory recursively for files and suggests them in require. Log files are not created, so I cannot post any. Here are two screenshots instead.

Screenshot_20201124_210316
Screenshot_20201124_230112

@sumneko sumneko added the bug Something isn't working label Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants