Skip to content

Different Formatter for Specific Repositories #164

Answered by jfkonecn
jfkonecn asked this question in Q&A
Discussion options

You must be logged in to vote

This probably could be improved, but this is what I ended up doing.

local null_ls = require("null-ls")

local java_prettier = null_ls.builtins.formatting.prettier.with({
	name = "prettier_java",
	filetypes = { "java" },
})

null_ls.disable({ name = "google_java_format" })
null_ls.register(java_prettier)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jfkonecn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant