From 8b760b7282f63637cd762ceb8d7771b162ac169d Mon Sep 17 00:00:00 2001 From: khyperia <953151+khyperia@users.noreply.github.com> Date: Sun, 5 Apr 2026 16:45:06 +0200 Subject: [PATCH] add skip_comments=true to neovim setup --- src/building/suggested.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/building/suggested.md b/src/building/suggested.md index 959d0687b..8eac4edd7 100644 --- a/src/building/suggested.md +++ b/src/building/suggested.md @@ -208,7 +208,7 @@ lspconfig.rust_analyzer.setup { if vim.uv.fs_stat(config) then -- load rust-lang/rust settings local file = io.open(config) - local json = vim.json.decode(file:read("*a")) + local json = vim.json.decode(file:read("*a"), { skip_comments = true }) client.config.settings["rust-analyzer"] = expand_config_variables(json.lsp["rust-analyzer"].initialization_options) client.notify("workspace/didChangeConfiguration", { settings = client.config.settings }) end