Skip to content

coc-extensions/coc-powershell

Repository files navigation

coc-powershell

Build Status Codacy Badge npm

A vim plugin powered by PowerShellEditorServices and coc.nvim to provide a rich PowerShell editing experience.

Features include:

  • Intellisense/Completions
  • Go to definition
  • PSScriptAnalyzer integration
  • Integrated REPL environment that shares the context with the language services
  • and much more!

Prerequisites

  1. Vim 8.0+ or NeoVim
  2. PowerShell Core or Windows PowerShell
  3. coc.nvim

Installation

coc-powershell is an extension for coc.nvim. You can install coc.nvim with a plugin manager like vim-plug:

Plug 'neoclide/coc.nvim', {'branch': 'release'}

Then, use :CocInstall coc-powershell to install.

Alternatively, you can have coc.nvim automatically install the extension if it's missing:

let g:coc_global_extensions=[ 'coc-powershell', ... ]

Configuration

Disable the integrated console

You can disable the integrated console when a PowerShell file is opened by editing your coc-settings.json file and setting powershell.integratedConsole.showOnStartup to false.

{
    "powershell.integratedConsole.showOnStartup": false
}

Recommended plugins