Replies: 1 comment 4 replies
-
|
At first sight I would say you're missing Instead of this: jsonls = {
schemaStore = {
enable = false,
url = "",
},
schemas = schemastore.json.schemas(),
},Try the following: jsonls = {
settings = {
json = {
schemaStore = {
enable = false,
url = "",
},
schemas = schemastore.json.schemas(),
},
},
}, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
I have configured blink with nvim-lspconfig and all my lsps are working as expected. However, JSONLS refuses to give me any schema level autocomplete for keys in any json files, I only get
$schemaas a single option for completion.NeoVim configs below:
lsp/init.lua
lsp/blink.lua
This is true with default jsonls, or with a specific filename declared e.g. pointing a
package.jsonconfig option towards the specific schema in schemastore, or by using theb0o/schemastore.nvimplugin as intended.The only thing that actually gets me autocompletion is by adding the
$schemakey directly within the file e.g.{ "$schema": "https://json.schemastore.org/package.json" ...rest }I don't fully remember if this work with
nvim-cmp.Full link to my config: https://github.com/johnend/dots/tree/main/common/.config/nvim
Beta Was this translation helpful? Give feedback.
All reactions