Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An extension for nvim-dap providing default configurations for powershell. Supports launch and attach configurations.

License

NotificationsYou must be signed in to change notification settings

Willem-J-an/nvim-dap-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An extension fornvim-dap providing default configurations for powershell. Supports launch and attach configurations.

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,}

Configuration

Default config

{include_configs=true,pwsh_executable="pwsh",pses_bundle_path-- Default path for PowerShell Editor Services bundle if installed through mason.}

Powershell launch.json

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.

Repl content color correction

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

Custom dap configurations

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp