ionide / Ionide-vim

F# Vim plugin based on FsAutoComplete and LSP protocol
MIT License
174 stars 21 forks source link

Use . as a separator when importing modules #45

Closed itsbth closed 2 years ago

itsbth commented 2 years ago

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 commented 2 years ago

Thanks!