tamago324 / nlsp-settings.nvim

A plugin for setting Neovim LSP with JSON or YAML files
MIT License
316 stars 18 forks source link

Schemas can't load in Windows #16

Closed lopi-py closed 2 years ago

lopi-py commented 2 years ago

image I found the problem, it's on this line https://github.com/tamago324/nlsp-settings.nvim/blob/main/lua/nlspsettings/jsonls.lua#L29, it can be fixed by replacing file:// with file:/// or just /.

res[server_name] = string.format('/%s/%s', path, name) -- jsonls.lua L29

image this works fine for me.

tamago324 commented 2 years ago

PR is welcome!

lopi-py commented 2 years ago

Alright, also I tried in Linux and doesn't seems to work, so I'll do the PR without Windows distinction