plugins and dap dap_config
This commit is contained in:
parent
df51df316b
commit
2f532d405d
|
@ -1,8 +1,27 @@
|
||||||
|
vim.fn.sign_define('DapBreakpoint', {text='🟥', texthl='', linehl='', numhl=''})
|
||||||
|
vim.fn.sign_define('DapStopped', {text='⭐️', texthl='', linehl='', numhl=''})
|
||||||
local dap = require('dap')
|
local dap = require('dap')
|
||||||
dap.adapters.node2 = {
|
dap.adapters.node2 = {
|
||||||
type = 'executable',
|
type = 'executable',
|
||||||
command = 'node',
|
command = 'node',
|
||||||
args = {os.getenv('HOME') .. '/dev/microsoft/vscode-node-debug2/out/src/nodeDebug.js'},
|
args = {os.getenv('HOME') .. '/dev/microsoft/vscode-node-debug2/out/src/nodeDebug.js'},
|
||||||
}
|
}
|
||||||
vim.fn.sign_define('DapBreakpoint', {text='🟥', texthl='', linehl='', numhl=''})
|
dap.configurations.javascript = {
|
||||||
vim.fn.sign_define('DapStopped', {text='⭐️', texthl='', linehl='', numhl=''})
|
{
|
||||||
|
name = 'Launch',
|
||||||
|
type = 'node2',
|
||||||
|
request = 'launch',
|
||||||
|
program = '${file}',
|
||||||
|
cwd = vim.fn.getcwd(),
|
||||||
|
sourceMaps = true,
|
||||||
|
protocol = 'inspector',
|
||||||
|
console = 'integratedTerminal',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- For this to work you need to make sure the node process is started with the `--inspect` flag.
|
||||||
|
name = 'Attach to process',
|
||||||
|
type = 'node2',
|
||||||
|
request = 'attach',
|
||||||
|
processId = require'dap.utils'.pick_process,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -85,13 +85,6 @@ require("packer").startup(function(use)
|
||||||
})
|
})
|
||||||
use {
|
use {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
requires = "kyazdani42/nvim-web-devicons",
|
requires = "kyazdani42/nvim-web-devicons"
|
||||||
config = function()
|
|
||||||
require("trouble").setup {
|
|
||||||
-- your configuration comes here
|
|
||||||
-- or leave it empty to use the default settings
|
|
||||||
-- refer to the configuration section below
|
|
||||||
}
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue