tamago324 / nlsp-settings.nvim

A plugin for setting Neovim LSP with JSON or YAML files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schemas can't load in Windows

lopi-py opened this issue · comments

commented

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.

PR is welcome!

commented

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