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" },
nix = { "nixfmt" },
tex = { "latexindent" },
c = { "clang_format" },
cpp = { "clang_format" },
["*"] = { "codespell" },
["_"] = { "trim_whitespace" },
},
@@ -47,9 +49,11 @@ return {
inherit = true,
prepend_args = { "-y=\"defaultIndent:' '\"" },
},
clang_format = {
prepend_args = { "--style=~/.config/.clang-format" },
},
},
})
end,
},
}

View File

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