diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 2169831..295c3c3 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -44,8 +44,7 @@ return { }, }, }) - local parser = require('nvim-treesitter.parsers').filetype_to_parsername - parser.groovy = 'java' -- the someft filetype will use the python parser and queries. + vim.treesitter.language.register('groovy', 'java') require('nvim-treesitter.install').prefer_git = true end }