Skip to content

Commit

Permalink
ci: use stylua 0.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 9, 2023
1 parent ca8edde commit d76366d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.15.2
version: v0.18.2
args: --check lua tests

run_tests:
Expand Down
3 changes: 1 addition & 2 deletions lua/conform/lsp_format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ function M.format(options, callback)
elseif not vim.api.nvim_buf_is_valid(bufnr) then
return callback("buffer was deleted")
elseif changedtick ~= require("conform.util").buf_get_changedtick(bufnr) then
return
callback(
return callback(
string.format(
"Async LSP formatter discarding changes for %s: concurrent modification",
vim.api.nvim_buf_get_name(bufnr)
Expand Down

0 comments on commit d76366d

Please sign in to comment.