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

Use . as a separator when importing modules #45

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

itsbth
Copy link
Contributor

@itsbth itsbth commented Dec 2, 2021

While both . and / works, lua doesn't normalize the name. This means
that requiring foo.bar and foo/bar will load the same file twice.
nvim-lspconfig uses . (see https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig.lua#L1)
while this uses /, so the config isn't found when it tries to start it.
Tested on neovim 0.6.0, nvim-lspconfig 5b8624c.

While both `.` and `/` works, lua doesn't normalize the name. This means
that requiring `foo.bar` and `foo/bar` will load the same file twice.
nvim-lspconfig uses `.` (see https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig.lua#L1)
while this uses `/`, so the config isn't found when it tries to start it.
Tested on neovim 0.6.0, nvim-lspconfig 5b8624c.
@cannorin cannorin merged commit b341da4 into ionide:master Dec 3, 2021
@cannorin
Copy link
Member

cannorin commented Dec 3, 2021

Thanks!

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