mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(dap): mason-nvim-dap configures dap vscode filetypes
https://github.com/jay-babu/mason-nvim-dap.nvim/pull/129
This commit is contained in:
parent
f04af896a3
commit
fc46125089
1 changed files with 1 additions and 6 deletions
|
|
@ -87,16 +87,11 @@ return {
|
||||||
|
|
||||||
-- setup dap config by VsCode launch.json file
|
-- setup dap config by VsCode launch.json file
|
||||||
local vscode = require("dap.ext.vscode")
|
local vscode = require("dap.ext.vscode")
|
||||||
local _filetypes = require("mason-nvim-dap.mappings.filetypes")
|
|
||||||
local filetypes = vim.tbl_deep_extend("force", _filetypes, {
|
|
||||||
["node"] = { "javascriptreact", "typescriptreact", "typescript", "javascript" },
|
|
||||||
["pwa-node"] = { "javascriptreact", "typescriptreact", "typescript", "javascript" },
|
|
||||||
})
|
|
||||||
local json = require("plenary.json")
|
local json = require("plenary.json")
|
||||||
vscode.json_decode = function(str)
|
vscode.json_decode = function(str)
|
||||||
return vim.json.decode(json.json_strip_comments(str))
|
return vim.json.decode(json.json_strip_comments(str))
|
||||||
end
|
end
|
||||||
vscode.load_launchjs(nil, filetypes)
|
vscode.load_launchjs()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue