Skip to content

Commit

Permalink
fix(edgedb): use vim.filetype.add to add filetype rather than autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Mar 1, 2024
1 parent aa23631 commit 4b0f5cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lua/astrocommunity/pack/edgedb/init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
return {
"edgedb/edgedb-vim",
ft = "edgeql",
config = function()
vim.api.nvim_create_autocmd(
{ "BufRead", "BufNewFile" },
{ pattern = { "*.esdl", "*.edgeql" }, command = "setf edgeql" }
)
init = function()
vim.filetype.add {
extensions = {
esdl = "edgeql",
edgeql = "edgeql",
},
}
end,
}

0 comments on commit 4b0f5cf

Please sign in to comment.