mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-16 04:14:41 +02:00
fix autoformatting
This commit is contained in:
parent
a84f5eb36b
commit
e541ef5482
5 changed files with 38 additions and 25 deletions
|
@ -9,7 +9,7 @@ require'lspconfig'.gopls.setup {
|
|||
if O.lang.go.autoformat then
|
||||
require('lv-utils').define_augroups({
|
||||
_go_format = {
|
||||
'BufWritePre', '*.go', 'lua vim.lsp.buf.formatting_sync(nil,1000)'
|
||||
{'BufWritePre', '*.go', 'lua vim.lsp.buf.formatting_sync(nil,1000)'}
|
||||
},
|
||||
_go = {
|
||||
-- Go generally requires Tabs instead of spaces.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue