mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
fix(dap): use jsonc support from plenary. Same as the code from neoconf. Fixes #3174
This commit is contained in:
parent
2391ac0420
commit
8dae76c1fd
1 changed files with 4 additions and 1 deletions
|
@ -126,7 +126,10 @@ return {
|
|||
["node"] = { "javascriptreact", "typescriptreact", "typescript", "javascript" },
|
||||
["pwa-node"] = { "javascriptreact", "typescriptreact", "typescript", "javascript" },
|
||||
})
|
||||
vscode.json_decode = require("neoconf.json.jsonc").decode_jsonc
|
||||
local json = require("plenary.json")
|
||||
vscode.json_decode = function(str)
|
||||
return vim.json.decode(json.json_strip_comments(str))
|
||||
end
|
||||
vscode.load_launchjs(nil, filetypes)
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue