Skip to content

pest-parser/pest.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pest.vim

Syntax highlighting for pest PEG grammar files.

Example (using the default color scheme):

Screenshot

Installation

Using Vundle

Add the following to your vimrc

Plugin 'pest-parser/pest.vim'
use 'pest-parser/pest.vim'

Neovim LSP support

Install language server

If you're using mason.nvim, run:

:MasonInstall pest-language-server

Or install it manually:

cargo install pest-language-server

Set up language server

Then set it up by calling this somewhere in your neovim lua config (you may need to pass any common opts to this as well):

require('pest-vim').setup {}

If you're using mason-lspconfig.nvim with Automatic server setup, you can configure it as:

require('mason-lspconfig').setup_handlers {
    ...

    ['pest_ls'] = function ()
        require('pest-vim').setup {}
    end,
    ...
}

About

Vim syntax highlighting for pest PEG grammar files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published