From d76366d593dd92d52714e6de0ff28217abedb3d3 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sun, 8 Oct 2023 22:55:07 -0700 Subject: [PATCH] ci: use stylua 0.18.2 --- .github/workflows/tests.yml | 2 +- lua/conform/lsp_format.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 843ba735..fca39cef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: diff --git a/lua/conform/lsp_format.lua b/lua/conform/lsp_format.lua index f952ab9e..089bde25 100644 --- a/lua/conform/lsp_format.lua +++ b/lua/conform/lsp_format.lua @@ -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)