nixos: gen 46 @ lilac — 2026-09-18 08:21 26.05.20260814.02e0898 (Yarara) -----
This commit is contained in:
@@ -88,11 +88,14 @@ in
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Indent is left off deliberately: treesitter's Java indent fights the
|
-- nvim-treesitter no longer exposes a configs module; highlighting is
|
||||||
-- Eclipse-matching tab settings applied in the FileType autocmd below.
|
-- started per buffer. Indent is deliberately left alone so treesitter
|
||||||
require("nvim-treesitter.configs").setup({
|
-- doesn't fight the Eclipse-matching tab settings below.
|
||||||
highlight = { enable = true },
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
indent = { enable = false },
|
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.
|
-- Java indentation must match Eclipse's formatter, not the 2-space default.
|
||||||
|
|||||||
Reference in New Issue
Block a user