From da1ee9c6b82b9f025a4eb419a287583b4efaa502 Mon Sep 17 00:00:00 2001 From: mohsen Date: Mon, 6 Mar 2023 14:22:03 +0330 Subject: [PATCH 1/2] feat: Add a description for mappings --- lua/nvim-treesitter-refactor/navigation.lua | 2 +- lua/nvim-treesitter-refactor/smart_rename.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From 6d4e85735a90e6baf52e04398ae8c0c0b00fe34d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Tue, 21 Mar 2023 00:28:12 +0100 Subject: [PATCH 2/2] ci: fix stylua action by update to v2 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .