Skip to content

Commit

Permalink
fix neovim lsp deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Nov 1, 2022
1 parent fafb1f9 commit 8847a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ EOF
" add missing imports for Go
autocmd BufWritePre *.go lua OrgImports(1000)
" gofmt or equivalent on save
autocmd BufWritePre * lua vim.lsp.buf.formatting_sync()
autocmd BufWritePre * lua vim.lsp.buf.format({ async = false })

function! SynGroup()
let l:s = synID(line('.'), col('.'), 1)
Expand Down

0 comments on commit 8847a02

Please sign in to comment.