edgedb-vim icon indicating copy to clipboard operation
edgedb-vim copied to clipboard

Cloned repo to ~/.vim/pack but Syntax highlighting does not work

Open haphamdev opened this issue 3 years ago • 4 comments

I cloned this repo using git clone https://github.com/edgedb/edgedb-vim ~/.vim/pack/edgedb/start/edgedb but when I opened default.esdl, syntax highlighting does not work on my neovim. image

haphamdev avatar Feb 19 '22 07:02 haphamdev

What should be the filetype?

I tried :set ft=edgeql but did not work.

haphamdev avatar Feb 19 '22 07:02 haphamdev

I had to

set ft=edgeql
source ~/.vim/pack/edgedb/start/edgedb/syntax/edgeql.vim

and it worked. Let me investigate why the syntax was not souced automatically. The filetype can be set easily with an autocmd.

haphamdev avatar Feb 19 '22 07:02 haphamdev

Found the solution. Let me create a pull request.

haphamdev avatar Feb 22 '22 03:02 haphamdev

Pull request https://github.com/edgedb/edgedb-vim/pull/8

haphamdev avatar Feb 22 '22 04:02 haphamdev