Add clang.

This commit is contained in:
2024-12-14 15:18:04 +01:00
parent 439fde56f2
commit 2e3a861045
2 changed files with 7 additions and 3 deletions

View File

@@ -31,6 +31,8 @@ return {
yaml = { "prettierd" }, yaml = { "prettierd" },
nix = { "nixfmt" }, nix = { "nixfmt" },
tex = { "latexindent" }, tex = { "latexindent" },
c = { "clang_format" },
cpp = { "clang_format" },
["*"] = { "codespell" }, ["*"] = { "codespell" },
["_"] = { "trim_whitespace" }, ["_"] = { "trim_whitespace" },
}, },
@@ -47,9 +49,11 @@ return {
inherit = true, inherit = true,
prepend_args = { "-y=\"defaultIndent:' '\"" }, prepend_args = { "-y=\"defaultIndent:' '\"" },
}, },
clang_format = {
prepend_args = { "--style=~/.config/.clang-format" },
},
}, },
}) })
end, end,
}, },
} }

View File

@@ -70,7 +70,7 @@ return {
on_attach = on_attach, on_attach = on_attach,
}) })
lspconfig["hls"].setup({ lspconfig["hls"].setup({
filetypes = { 'haskell', 'lhaskell', 'cabal' }, filetypes = { "haskell", "lhaskell", "cabal" },
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,
}) })
@@ -86,7 +86,7 @@ return {
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,
}) })
lspconfig["ruff_lsp"].setup({ lspconfig["ruff"].setup({
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,
}) })