mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-05 18:44:52 +02:00
added Clangd format_on_save (#621)
* clang autoformat do save lot of trouble * clang autoformat do save lot of trouble * clang indentation done, comments updated * clang indentation done, comments updated Co-authored-by: Mayank Sharma <info@Mayanks-MacBook-Air.local>
This commit is contained in:
parent
049fd808d9
commit
7dc564c427
3 changed files with 18 additions and 1 deletions
|
@ -19,3 +19,13 @@ require'lspconfig'.clangd.setup {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
if O.lang.clang.autoformat then
|
||||
require('lv-utils').define_augroups({
|
||||
_clang_autoformat = {
|
||||
{
|
||||
'BufWritePre *.cpp lua vim.lsp.buf.formatting_sync(nil,1000)'
|
||||
|
||||
}
|
||||
} })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue