mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-03 17:45:52 +02:00
[LSP] clang - Support autoformat for all file-types. (#634)
This commit is contained in:
parent
a8ccb55260
commit
af3e51eec8
1 changed files with 5 additions and 5 deletions
|
@ -23,9 +23,9 @@ 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)'
|
||||
|
||||
}
|
||||
} })
|
||||
{'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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue