From 491a9c630ba703956688edca2febccb5698327b1 Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Fri, 27 Sep 2024 19:48:21 +0200 Subject: [PATCH] Add Java to Treesitter --- lua/plugins/extend-treesitter.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lua/plugins/extend-treesitter.lua diff --git a/lua/plugins/extend-treesitter.lua b/lua/plugins/extend-treesitter.lua new file mode 100644 index 0000000..fdd44b9 --- /dev/null +++ b/lua/plugins/extend-treesitter.lua @@ -0,0 +1,9 @@ +return { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + -- add parsers, without replacing the default ones + vim.list_extend(opts.ensure_installed, { + "java", + }) + end, +}