Skip to content

arjanadriaanse/lsp-pascal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

lsp-pascal

LSP client to support Pascal through =lsp-mode= using the Pascal Language Server.

Install

Build the language server from the repository linked above.

Add the following to your Emacs configuration.

(add-to-list 'load-path "/path/to/lsp-pascal")
(require 'lsp-pascal)

(add-hook 'pascal-mode-hook #'lsp)
(add-hook 'opascal-mode-hook #'lsp)

;; set this in case the language server is not available in PATH
(setq lsp-pascal-command "/path/to/pasls")

;; set this to your FPC source location
(setq lsp-pascal-fpcdir "/usr/lib/fpc/3.2.0/source")

All available options can be found through M-x customize-group in the group lsp-pascal.

Tips

Some additional useful configuration for editing Object Pascal.

;; load opascal-mode automatically for these file extensions
(add-to-list 'auto-mode-alist
             '("\\.\\(pas\\|pp\\|lpr\\|dpr\\)\\'" . opascal-mode))

;; set indentation to a more conventional value
(setq opascal-indent-level 2)
(setq opascal-case-label-indent 2)

About

Emacs LSP client for Pascal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published