Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coc-extensions/coc-powershell

PowerShellEditorService integration for coc.vim
https://github.com/coc-extensions/coc-powershell

hacktoberfest vim

Last synced: about 9 hours ago
JSON representation

PowerShellEditorService integration for coc.vim

Awesome Lists containing this project

README

        

# coc-powershell

[![Build Status](https://v-yadli.visualstudio.com/coc-powershell/_apis/build/status/coc-extensions.coc-powershell?branchName=master)](https://v-yadli.visualstudio.com/coc-powershell/_build/latest?definitionId=4&branchName=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/821f104c56834a73acede8d387fc4c2b)](https://www.codacy.com/manual/coc-extensions/coc-powershell?utm_source=github.com&utm_medium=referral&utm_content=coc-extensions/coc-powershell&utm_campaign=Badge_Grade)
![npm](https://img.shields.io/npm/v/coc-powershell.svg)

A vim plugin powered by
[PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) and
[coc.nvim](https://github.com/neoclide/coc.nvim)
to provide a rich PowerShell editing experience.

Features include:
* Intellisense/Completions
* Go to definition
* [PSScriptAnalyzer](https://github.com/PowerShell/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](https://github.com/powershell/powershell) or Windows PowerShell
3. [coc.nvim](https://github.com/neoclide/coc.nvim)

## Installation

`coc-powershell` is an extension for `coc.nvim`.
You can install `coc.nvim` with a plugin manager like [vim-plug](https://github.com/junegunn/vim-plug):
```vimL
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:
```vimL
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`.

```json
{
"powershell.integratedConsole.showOnStartup": false
}
```

## Recommended plugins

* [coc-snippets](https://github.com/neoclide/coc-snippets) Used to allow snippets [(requires neovim 0.4 or latest vim8)](https://github.com/neoclide/coc.nvim/wiki/F.A.Q#how-to-make-preview-window-shown-aside-with-pum).
* Can be installed with `:CocInstall coc-snippets`
* [vim-polyglot](https://github.com/sheerun/vim-polyglot) for syntax highlighting 🎨