Add clang.
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user