From f8b5cbe6312b568def1f91d747e2cdb8984fdf2e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 18 Apr 2025 17:44:38 +0200 Subject: docs: cleanup - brief should live at the top of each file - fix indentation for some docs --- lsp/pasls.lua | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'lsp/pasls.lua') 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' }, -- cgit v1.2.3-70-g09d2