Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pest-parser/pest.vim
Vim syntax highlighting for pest PEG grammar files.
https://github.com/pest-parser/pest.vim
Last synced: 3 months ago
JSON representation
Vim syntax highlighting for pest PEG grammar files.
- Host: GitHub
- URL: https://github.com/pest-parser/pest.vim
- Owner: pest-parser
- License: mit
- Created: 2017-11-23T23:01:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T12:25:58.000Z (7 months ago)
- Last Synced: 2024-06-11T19:17:57.630Z (5 months ago)
- Language: Vim Script
- Homepage:
- Size: 159 KB
- Stars: 31
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pest - pest.vim
README
# pest.vim
Syntax highlighting for [pest](https://github.com/pest-parser/pest) PEG grammar
files.Example (using the default color scheme):
![Screenshot](screenshot.png)
## Installation
### Using [Vundle](https://github.com/VundleVim/Vundle.vim)
Add the following to your `vimrc`
```vimrc
Plugin 'pest-parser/pest.vim'
```### Using [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use 'pest-parser/pest.vim'
```## Neovim LSP support
### Install language server
If you're using [mason.nvim](https://github.com/williamboman/mason.nvim), run:
```vimrc
:MasonInstall pest-language-server
```Or install it manually:
```bash
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):
```lua
require('pest-vim').setup {}
```If you're using `mason-lspconfig.nvim` with [Automatic server setup](https://github.com/williamboman/mason-lspconfig.nvim#automatic-server-setup-advanced-feature), you can configure it as:
```lua
require('mason-lspconfig').setup_handlers {
...['pest_ls'] = function ()
require('pest-vim').setup {}
end,
...
}
```