1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Fix perl support (#2230)

* Fix type

* Use forked perldoc
This commit is contained in:
Wang Shidong 2019-01-12 21:46:45 +08:00 committed by GitHub
parent 6bfa04a62a
commit cdf519867c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -11,7 +11,7 @@ function! SpaceVim#layers#lang#perl#plugins() abort
let plugins = [] let plugins = []
call add(plugins, ['c9s/perlomni.vim', {'on_ft' : 'perl'}]) call add(plugins, ['c9s/perlomni.vim', {'on_ft' : 'perl'}])
call add(plugins, ['vim-perl/vim-perl', {'on_ft' : 'perl'}]) call add(plugins, ['vim-perl/vim-perl', {'on_ft' : 'perl'}])
call add(plugins, ['hotchpotch/perldoc-vim', {'on_cmd' : 'Perldoc'}]) call add(plugins, ['wsdjeg/perldoc-vim', {'on_cmd' : 'Perldoc'}])
return plugins return plugins
endfunction endfunction

View File

@ -10,8 +10,8 @@ description: "This layer is for perl development, provide autocompletion, syntax
- [Description](#description) - [Description](#description)
- [Features](#features) - [Features](#features)
- [Install](#install) - [Install](#install)
- [Layer](#layer)
- [Key bindings](#key-bindings) - [Key bindings](#key-bindings)
- [Find documentation](#find-documentation)
- [Inferior REPL process](#inferior-repl-process) - [Inferior REPL process](#inferior-repl-process)
- [Running current script](#running-current-script) - [Running current script](#running-current-script)
@ -31,8 +31,6 @@ SpaceVim also provides REPL/Debug support for perl.
## Install ## Install
### Layer
To use this configuration layer, update custom configuration file with: To use this configuration layer, update custom configuration file with:
```toml ```toml
@ -42,6 +40,14 @@ To use this configuration layer, update custom configuration file with:
## Key bindings ## Key bindings
### Find documentation
| Key binding | Description |
| ----------- | ---------------------------- |
| `K` | open Perldoc on the keywords |
within perldoc windows, you can use `s` to toggle source code and the documentation.
### Inferior REPL process ### Inferior REPL process
Start a `perl` inferior REPL process with `SPC l s i`. Start a `perl` inferior REPL process with `SPC l s i`.