How to get null-ls to automatically mount to file types #385
Answered
by
shaeinst
irishgreencitrus
asked this question in
Q&A
-
Hey, apologies if this is already a question, however I have looked around and there seems to be no sources with my specific problem. The problem is that Any help appreciated |
Beta Was this translation helpful? Give feedback.
Answered by
shaeinst
Sep 7, 2022
Replies: 1 comment
-
you have to explicitly configure each formatter/linters require("null-ls").setup({
sources = {
require("null-ls").builtins.formatting.clang_format.with({
command = "clang-format",
args = {
"-assume-filename",
"$FILENAME",
},
to_stdin = true,
})
},
})
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
irishgreencitrus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you have to explicitly configure each formatter/linters
for example: to setup clang_format
readmore
more
for ref