|
@@ -23,9 +23,9 @@ require'lspconfig'.clangd.setup {
|
|
if O.lang.clang.autoformat then
|
|
if O.lang.clang.autoformat then
|
|
require('lv-utils').define_augroups({
|
|
require('lv-utils').define_augroups({
|
|
_clang_autoformat = {
|
|
_clang_autoformat = {
|
|
- {
|
|
|
|
- 'BufWritePre *.cpp lua vim.lsp.buf.formatting_sync(nil,1000)'
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- } })
|
|
|
|
|
|
+ {'BufWritePre *.c lua vim.lsp.buf.formatting_sync(nil,1000)'},
|
|
|
|
+ {'BufWritePre *.h lua vim.lsp.buf.formatting_sync(nil,1000)'},
|
|
|
|
+ {'BufWritePre *.cpp lua vim.lsp.buf.formatting_sync(nil,1000)'},
|
|
|
|
+ {'BufWritePre *.hpp lua vim.lsp.buf.formatting_sync(nil,1000)'},
|
|
|
|
+ }})
|
|
end
|
|
end
|