diff --git a/docs/cn/layers/lang/pascal.md b/docs/cn/layers/lang/pascal.md index 6340f5e7a..e07ca3f8d 100644 --- a/docs/cn/layers/lang/pascal.md +++ b/docs/cn/layers/lang/pascal.md @@ -11,13 +11,14 @@ lang: zh - [模块简介](#模块简介) - [启用模块](#启用模块) - [快捷键](#快捷键) - - [运行当前脚本](#运行当前脚本) ## 模块简介 -这一模块为在 SpaceVim 中进行 pascal 开发提供了支持。 +这一模块为在 SpaceVim 中进行 pascal 开发提供了支持。默认使用 +[free pascal](https://www.freepascal.org/) 作为编译器,在使用 +这一模块之前,需要下载并安装编译器。 ## 启用模块 @@ -30,6 +31,4 @@ lang: zh ## 快捷键 -### 运行当前脚本 - 在编辑 pascal 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。 diff --git a/docs/layers/lang/pascal.md b/docs/layers/lang/pascal.md index c0590bc18..5db1f5d99 100644 --- a/docs/layers/lang/pascal.md +++ b/docs/layers/lang/pascal.md @@ -9,14 +9,15 @@ description: "This layer is for pascal development, provides syntax highlighting - [Description](#description) - [Install](#install) -- [Features](#features) - [Key bindings](#key-bindings) ## Description -This layer is for pascal development. +This layer is for pascal development. And the default compiler +is [free pascal](https://www.freepascal.org/), You need to download +the compiler before using this layer. ## Install @@ -26,10 +27,8 @@ To use this configuration layer, update custom configuration file with: [[layers]] name = "lang#pascal" ``` -## Features - -- code runner ## Key bindings -To running a pascal file, you can press `SPC l r` to run current file without loss focus, and the result will be shown in a runner buffer. +Make sure you have `fpc` in your PATH. The key binding `SPC l r` will run +`fpc` command asynchronously. and the result will be shown in a runner buffer.