Skip to content

Commit 2d2dc0f

Browse files
committed
feat!: remove support for bevy's WESL filetype
1 parent bb19fba commit 2d2dc0f

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

lua/config/autocmds.lua

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,6 @@ vim.api.nvim_create_autocmd("LspAttach", {
4747

4848
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { pattern = "*.wesl", command = "setfiletype wesl" })
4949

50-
-- Set up WESL treesitter parser when nvim-treesitter loads
51-
vim.api.nvim_create_autocmd("User", {
52-
pattern = "LazyLoad",
53-
callback = function(event)
54-
if event.data == "nvim-treesitter" then
55-
require("nvim-treesitter.parsers").get_parser_configs().wesl = {
56-
install_info = {
57-
url = "https://github.com/wgsl-tooling-wg/tree-sitter-wesl",
58-
files = { "src/parser.c", "src/scanner.c" },
59-
branch = "main",
60-
generate_requires_npm = true,
61-
},
62-
}
63-
vim.filetype.add({ extension = { wesl = "wesl" } })
64-
vim.treesitter.language.register("wgsl_bevy", "wesl")
65-
end
66-
end,
67-
})
68-
6950
-- Disable word wrap on Markdown files.
7051
vim.api.nvim_create_autocmd("FileType", {
7152
desc = "Disable word wrap on Markdown files",

0 commit comments

Comments
 (0)