home: vim: null-ls: add 'buildifier' configuration

This commit is contained in:
Bruno BELANYI 2023-05-09 20:22:29 +01:00
parent 102dc4cc76
commit 8a78ce8520

View file

@ -6,6 +6,18 @@ null_ls.setup({
on_attach = lsp.on_attach, on_attach = lsp.on_attach,
}) })
-- Bazel
null_ls.register({
null_ls.builtins.diagnostics.buildifier.with({
-- Only used if available
condition = utils.is_executable_condition("buildifier"),
}),
null_ls.builtins.formatting.buildifier.with({
-- Only used if available
condition = utils.is_executable_condition("buildifier"),
}),
})
-- C, C++ -- C, C++
null_ls.register({ null_ls.register({
null_ls.builtins.formatting.clang_format.with({ null_ls.builtins.formatting.clang_format.with({