mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-29 22:30:21 +02:00
fix(dap): remove unnecessary dap.ext.vscode
This commit is contained in:
parent
25abbf546d
commit
c0d8272dc1
2 changed files with 0 additions and 11 deletions
|
@ -67,13 +67,6 @@ return {
|
||||||
{ text = sign[1], texthl = sign[2] or "DiagnosticInfo", linehl = sign[3], numhl = sign[3] }
|
{ text = sign[1], texthl = sign[2] or "DiagnosticInfo", linehl = sign[3], numhl = sign[3] }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- setup dap config by VsCode launch.json file
|
|
||||||
local vscode = require("dap.ext.vscode")
|
|
||||||
local json = require("plenary.json")
|
|
||||||
vscode.json_decode = function(str)
|
|
||||||
return vim.json.decode(json.json_strip_comments(str))
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -234,10 +234,6 @@ return {
|
||||||
|
|
||||||
local js_filetypes = { "typescript", "javascript", "typescriptreact", "javascriptreact" }
|
local js_filetypes = { "typescript", "javascript", "typescriptreact", "javascriptreact" }
|
||||||
|
|
||||||
local vscode = require("dap.ext.vscode")
|
|
||||||
vscode.type_to_filetypes["node"] = js_filetypes
|
|
||||||
vscode.type_to_filetypes["pwa-node"] = js_filetypes
|
|
||||||
|
|
||||||
for _, language in ipairs(js_filetypes) do
|
for _, language in ipairs(js_filetypes) do
|
||||||
if not dap.configurations[language] then
|
if not dap.configurations[language] then
|
||||||
dap.configurations[language] = {
|
dap.configurations[language] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue