Problem detecting prisma filetype

Hi all.
I’ve just added the prisma-language-server to my lsp config, but the lsp isn’t attaching automatically as nvim isn’t detecting the filetype prisma.
In a prisma file if I do :set filetype? I get filetype= and :LspInfo shows no clients attached.
If I :set filetype=prisma then the language server attaches and works as expected.
I don’t have a problem with detecting any other filetype, just prisma files.
So how can I automatically detect prisma filetype?

May have solved it.
I added vim-prisma plugin, which does set the filetype and so my lsp attaches, also gives me syntax highlighting as there is no treesitter support for prisma as yet.

1 Like