From cdf519867c9def3562e8fd12839041a9cdb28cb1 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Sat, 12 Jan 2019 21:46:45 +0800 Subject: [PATCH] Fix perl support (#2230) * Fix type * Use forked perldoc --- autoload/SpaceVim/layers/lang/perl.vim | 2 +- docs/layers/lang/perl.md | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/autoload/SpaceVim/layers/lang/perl.vim b/autoload/SpaceVim/layers/lang/perl.vim index 69145abbc..db3f24e96 100644 --- a/autoload/SpaceVim/layers/lang/perl.vim +++ b/autoload/SpaceVim/layers/lang/perl.vim @@ -11,7 +11,7 @@ function! SpaceVim#layers#lang#perl#plugins() abort let plugins = [] call add(plugins, ['c9s/perlomni.vim', {'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 endfunction diff --git a/docs/layers/lang/perl.md b/docs/layers/lang/perl.md index 17615bd34..29b8db0f2 100644 --- a/docs/layers/lang/perl.md +++ b/docs/layers/lang/perl.md @@ -10,8 +10,8 @@ description: "This layer is for perl development, provide autocompletion, syntax - [Description](#description) - [Features](#features) - [Install](#install) - - [Layer](#layer) - [Key bindings](#key-bindings) + - [Find documentation](#find-documentation) - [Inferior REPL process](#inferior-repl-process) - [Running current script](#running-current-script) @@ -31,8 +31,6 @@ SpaceVim also provides REPL/Debug support for perl. ## Install -### Layer - To use this configuration layer, update custom configuration file with: ```toml @@ -42,6 +40,14 @@ To use this configuration layer, update custom configuration file with: ## 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 Start a `perl` inferior REPL process with `SPC l s i`.