-
I'm trying to use prettier for java files only for specific repositories so I want to do that using a I'm trying to make use of the Even when I query for using Is there something I'm missing or is there a better way to accomplish this use case? |
Beta Was this translation helpful? Give feedback.
Answered by
jfkonecn
Jul 22, 2024
Replies: 1 comment
-
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) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jfkonecn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This probably could be improved, but this is what I ended up doing.