aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/pasls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/pasls.lua')
-rw-r--r--lsp/pasls.lua33
1 files changed, 17 insertions, 16 deletions
diff --git a/lsp/pasls.lua b/lsp/pasls.lua
index e148213a..ef544c9d 100644
--- a/lsp/pasls.lua
+++ b/lsp/pasls.lua
@@ -1,21 +1,22 @@
-local util = require 'lspconfig.util'
-
---@brief
---
--- https://github.com/genericptr/pascal-language-server
---
--- An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend.
---
--- First set `cmd` to the Pascal lsp binary.
---
--- Customization options are passed to pasls as environment variables for example in your `.bashrc`:
--- ```bash
--- export FPCDIR='/usr/lib/fpc/src' # FPC source directory (This is the only required option for the server to work).
--- export PP='/usr/lib/fpc/3.2.2/ppcx64' # Path to the Free Pascal compiler executable.
--- export LAZARUSDIR='/usr/lib/lazarus' # Path to the Lazarus sources.
--- export FPCTARGET='' # Target operating system for cross compiling.
--- export FPCTARGETCPU='x86_64' # Target CPU for cross compiling.
--- ```
+--- https://github.com/genericptr/pascal-language-server
+---
+--- An LSP server implementation for Pascal variants that are supported by Free Pascal, including Object Pascal. It uses CodeTools from Lazarus as backend.
+---
+--- First set `cmd` to the Pascal lsp binary.
+---
+--- Customization options are passed to pasls as environment variables for example in your `.bashrc`:
+--- ```bash
+--- export FPCDIR='/usr/lib/fpc/src' # FPC source directory (This is the only required option for the server to work).
+--- export PP='/usr/lib/fpc/3.2.2/ppcx64' # Path to the Free Pascal compiler executable.
+--- export LAZARUSDIR='/usr/lib/lazarus' # Path to the Lazarus sources.
+--- export FPCTARGET='' # Target operating system for cross compiling.
+--- export FPCTARGETCPU='x86_64' # Target CPU for cross compiling.
+--- ```
+
+local util = require 'lspconfig.util'
+
return {
cmd = { 'pasls' },
filetypes = { 'pascal' },