diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5cfd8c2..9225a37 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Lint with stylua - uses: JohnnyMorganz/stylua-action@1.0.0 + uses: JohnnyMorganz/stylua-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} args: --check . diff --git a/lua/nvim-treesitter-refactor/navigation.lua b/lua/nvim-treesitter-refactor/navigation.lua index 6003310..57d29a7 100644 --- a/lua/nvim-treesitter-refactor/navigation.lua +++ b/lua/nvim-treesitter-refactor/navigation.lua @@ -175,7 +175,7 @@ function M.attach(bufnr) for fn_name, mapping in pairs(config.keymaps) do local cmd = string.format([[:lua require'nvim-treesitter-refactor.navigation'.%s(%d)]], fn_name, bufnr) - api.nvim_buf_set_keymap(bufnr, "n", mapping, cmd, { silent = true, noremap = true }) + api.nvim_buf_set_keymap(bufnr, "n", mapping, cmd, { silent = true, noremap = true, desc = fn_name }) end end diff --git a/lua/nvim-treesitter-refactor/smart_rename.lua b/lua/nvim-treesitter-refactor/smart_rename.lua index b5053ed..9d2af1b 100644 --- a/lua/nvim-treesitter-refactor/smart_rename.lua +++ b/lua/nvim-treesitter-refactor/smart_rename.lua @@ -58,7 +58,7 @@ function M.attach(bufnr) for fn_name, mapping in pairs(config.keymaps) do local cmd = string.format([[:lua require'nvim-treesitter-refactor.smart_rename'.%s(%d)]], fn_name, bufnr) - api.nvim_buf_set_keymap(bufnr, "n", mapping, cmd, { silent = true, noremap = true }) + api.nvim_buf_set_keymap(bufnr, "n", mapping, cmd, { silent = true, noremap = true, desc = fn_name }) end end