From cd1e5d7408a7a7d4f4bdc3b7d4d851cbf08c7a57 Mon Sep 17 00:00:00 2001 From: joshashtondev Date: Fri, 18 Sep 2026 08:21:46 -0600 Subject: [PATCH] =?UTF-8?q?nixos:=20gen=2046=20@=20lilac=20=E2=80=94=20202?= =?UTF-8?q?6-09-18=2008:21=2026.05.20260814.02e0898=20(Yarara)=20-----?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/programs/nvim.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/home/programs/nvim.nix b/home/programs/nvim.nix index a866a0d..3da273a 100644 --- a/home/programs/nvim.nix +++ b/home/programs/nvim.nix @@ -88,11 +88,14 @@ in }, }) - -- Indent is left off deliberately: treesitter's Java indent fights the - -- Eclipse-matching tab settings applied in the FileType autocmd below. - require("nvim-treesitter.configs").setup({ - highlight = { enable = true }, - indent = { enable = false }, + -- nvim-treesitter no longer exposes a configs module; highlighting is + -- started per buffer. Indent is deliberately left alone so treesitter + -- doesn't fight the Eclipse-matching tab settings below. + vim.api.nvim_create_autocmd("FileType", { + pattern = { "java", "xml", "nix", "lua" }, + callback = function(args) + pcall(vim.treesitter.start, args.buf) + end, }) -- Java indentation must match Eclipse's formatter, not the 2-space default.