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

neovim补全项对比vscode下有缺漏 #2579

Open
ian-ie opened this issue Mar 24, 2024 · 0 comments
Open

neovim补全项对比vscode下有缺漏 #2579

ian-ie opened this issue Mar 24, 2024 · 0 comments

Comments

@ian-ie
Copy link

ian-ie commented Mar 24, 2024

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Windows WSL

What is the issue affecting?

Completion

Expected Behaviour

想使用自动require配置类,发现nvim不会提供补全,vscode可以
图片
配置类都形如

--- @class TradeFesLevelConfigData
--- @field _id string
--- @field exp integer
--- @field storage integer
--- @field extraToken number

--- @class TradeFesLevelConfig
local TradeFesLevelConfig = {}
TradeFesLevelConfig.NAME="TradeFesLevel"

--- @return TradeFesLevelConfigData
function TradeFesLevelConfig.getConfig(id)
	 return ConfigUtil.getConfig(TradeFesLevelConfig.NAME, tostring(id))
end

--- @retrun {[string]: TradeFesLevelConfigData}
function TradeFesLevelConfig.getAllConfig()
	 return ConfigUtil.getAllConfig(TradeFesLevelConfig.NAME)
end

--- @return TradeFesLevelConfigData[]
function TradeFesLevelConfig.getArrayConfig()
	 return ConfigUtil.getConfArr(TradeFesLevelConfig.NAME)
end


return TradeFesLevelConfig

Actual Behaviour

但是neovim环境下没有这些选项图片

Reproduction steps

  1. Go to '...'
  2. Click '...'
  3. See error '...'

Additional Notes

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1702233742

配置为lazyvim

Log File

No response

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

No branches or pull requests

1 participant