diff --git a/README.md b/README.md index bc78a9c..9550bc6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # 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` @@ -14,13 +15,13 @@ Copy this repo in your vim pack directory. More info in [Vim docs](https://githu ### 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. diff --git a/ftdetect/edgeql.vim b/ftdetect/edgeql.vim index 559236c..c3f0c62 100644 --- a/ftdetect/edgeql.vim +++ b/ftdetect/edgeql.vim @@ -1,2 +1,3 @@ autocmd BufNewFile,BufRead *.edgeql setf edgeql autocmd BufNewFile,BufRead *.esdl setf edgeql +autocmd BufNewFile,BufRead *.gel setf edgeql diff --git a/plugin/edgedb.vim b/plugin/edgedb.vim index 115ce90..e743cd5 100644 --- a/plugin/edgedb.vim +++ b/plugin/edgedb.vim @@ -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