Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

dylanaraps/pascal_lint.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

pascal_lint.nvim

*pascal_lint* is a simple plugin to call fpc (Free Pascal Compiler) and display the output of the compilation to the user asynchronously. There aren't any linting options for Pascal apart from using the Lazarus IDE so this is a good enough compromise.

Note: This makes use of Neovim's terminal splits. The plugin won't work in regular vim.

Dependencies

  • fpc
  • neovim

Installation

Use your favorite plugin manager.

  • vim-plug
    1. Add Plug 'dylanaraps/pascal_lint.nvim' to your init.vim
    2. Run :PlugInstall

Usage

:FPC

Run fpc on the current file and display the compiler output in a split below.

Compile on save

Display compiler output on file save. This is asynchronous so it doesn't block neovim.

Add this line to your init.vim.

autocmd BufWritePost *.pas :FPC

Options

g:pascal_lint#args

Which arguments to pass to fpc.

" Default
let g:pascal_lint#args = '-S2'

g:pascal_lint#split

What size split to create.

" Default
let g:pascal_lint#split = '5new'

About

πŸ† Show fpc compiler output in a neovim split.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published