Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
# EdgeDB Vim Syntax

This is a package with syntax highlighter for EdgeDB languages: EdgeQL and
ESDL (EdgeDB Schema Definition Language). The plugin is designed to work with
ESDL (EdgeDB Schema Definition Language). The plugin is designed to work with
vim and neovim.

# Usage

## Manual Clone

Copy this repo in your vim pack directory. More info in [Vim docs](https://github.com/vim/vim/blob/247bf0de465411e4ebb1c0fe1a9e07f4a7f77e91/runtime/doc/repeat.txt#L515)

`git clone https://github.com/edgedb/edgedb-vim ~/.vim/pack/edgedb/start/edgedb`

### For Neovim using [Packer](https://github.com/wbthomason/packer.nvim)

```
require('packer').startup(function(use)
require('packer').startup(function(use)
use 'edgedb/edgedb-vim'
end)
```

## Using a plugin manager
Use https://github.com/VundleVim/Vundle.vim or https://github.com/junegunn/vim-plug.

Files with extensions `esdl` and `edgeql` will be properly syntax highlighted.
Use https://github.com/VundleVim/Vundle.vim or https://github.com/junegunn/vim-plug.

Files with extensions `esdl`, `edgeql` and `gel` will be properly syntax highlighted.
1 change: 1 addition & 0 deletions ftdetect/edgeql.vim
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
autocmd BufNewFile,BufRead *.edgeql setf edgeql
autocmd BufNewFile,BufRead *.esdl setf edgeql
autocmd BufNewFile,BufRead *.gel setf edgeql
2 changes: 1 addition & 1 deletion plugin/edgedb.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
augroup edgedb
autocmd BufRead,BufNewFile *.esdl,*.edgeql :set filetype=edgeql
autocmd BufRead,BufNewFile *.esdl,*.edgeql,*.gel :set filetype=edgeql
augroup end