- Notifications
You must be signed in to change notification settings - Fork0
An extension for nvim-dap providing default configurations for powershell. Supports launch and attach configurations.
License
Willem-J-an/nvim-dap-powershell
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An extension fornvim-dap providing default configurations for powershell. Supports launch and attach configurations.
- Requires Neovim >= 0.5
- Requiresnvim-dap
- RequiresPowershell Editor Services
- Installation:
{"Willem-J-an/nvim-dap-powershell",dependencies= {"nvim-lua/plenary.nvim","mfussenegger/nvim-dap","rcarriga/nvim-dap-ui", {"m00qek/baleia.nvim",lazy=true,tag="v1.4.0", }, },config=function()require("dap-powershell").setup()end,}
{include_configs=true,pwsh_executable="pwsh",pses_bundle_path-- Default path for PowerShell Editor Services bundle if installed through mason.}
Launch.json refers to powershell as type = PowerShell, but nvim-dap refers to the filetype, default = ps1.Dap configurations are expected to be set for PowerShell, and will then work for PowerShell, ps1, psm1 filetypes.
Powershell Editor Services send back ANSI color coded error messages. These are not correctly parsed out of the box.To fix this it is recommended to configure the following after the dapui is initialized:
localdapui=require("dapui")dapui.setup()dap.listeners.after.event_initialized["dapui_config"]=function()dapui.open({})require('dap-powershell').correct_repl_colors()end
If you call therequire('dap-powershell').setup
method it will create a fewnvim-dap
configuration entries.These configurations are general purpose configurations suitable for many use cases, but you may need to customize the configurations.
To add your own entries, you can extend thedap.configurations.PowerShell
list after calling thesetup
function:
lua << EOFrequire('dap-powershell').setup()table.insert(require('dap').configurations.PowerShell, {type='PowerShell', request='launch', name='My custom launch configuration',script='${file}',})EOF
An alternative is to use project specific.vscode/launch.json
files, see:help dap-launch.json
.
About
An extension for nvim-dap providing default configurations for powershell. Supports launch and attach configurations.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.