Skip to content

Commit

Permalink
[vim] Enable go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rouge8 committed Jun 26, 2023
1 parent a8ac2e8 commit b9df502
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .config/nvim.symlink/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ augroup lua
au FileType lua au BufWritePre <buffer> call MaybeLSPFormat()
augroup END

" Go
augroup go
au!
au FileType go au BufWritePre <buffer> call MaybeLSPFormat()
augroup END

" Fish
augroup fish
au!
Expand Down
1 change: 1 addition & 0 deletions .config/nvim.symlink/lua/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ null_ls.setup({
extra_args = { "--unfixable", "F401,F841" },
}),
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.gofmt,
},
on_attach = on_attach,
})
Expand Down

0 comments on commit b9df502

Please sign in to comment.