From 8685c9894d7248ddfc10a36a0512a49429c0eb81 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Sun, 8 Dec 2024 18:01:47 -0500 Subject: [PATCH 1/3] fix bug --- lua/gitlab/actions/discussions/tree.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/gitlab/actions/discussions/tree.lua b/lua/gitlab/actions/discussions/tree.lua index a812f42e..7451a802 100644 --- a/lua/gitlab/actions/discussions/tree.lua +++ b/lua/gitlab/actions/discussions/tree.lua @@ -457,7 +457,9 @@ M.restore_cursor_position = function(winid, tree, original_node, root_node) end end if line_number ~= nil then - vim.api.nvim_win_set_cursor(winid, { line_number, 0 }) + if vim.api.nvim_win_is_valid(winid) then + vim.api.nvim_win_set_cursor(winid, { line_number, 0 }) + end end end From 0ce596f02d6e2256d3a9a510599d0a9c06c44671 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Sun, 8 Dec 2024 18:07:22 -0500 Subject: [PATCH 2/3] Updated workflow files --- .github/workflows/go.yaml | 2 ++ .github/workflows/lua.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 2786b74b..8ee7edb0 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -4,6 +4,8 @@ on: branches: - main - develop + paths-ignore: + - 'lua/**' # Ignore changes to the Lua code jobs: go_lint: name: Lint Go 💅 diff --git a/.github/workflows/lua.yaml b/.github/workflows/lua.yaml index 75042618..aa1a78f6 100644 --- a/.github/workflows/lua.yaml +++ b/.github/workflows/lua.yaml @@ -4,6 +4,8 @@ on: branches: - main - develop + paths-ignore: + - 'cmd/**' # Ignore changes to the Go code jobs: lua_lint: name: Lint Lua 💅 From e0548db1befa5142a907d866d98f539f3255badd Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Sun, 8 Dec 2024 18:10:28 -0500 Subject: [PATCH 3/3] Trying to update files again --- .github/workflows/go.yaml | 6 ++++-- .github/workflows/lua.yaml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 8ee7edb0..73f5ad13 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -4,8 +4,10 @@ on: branches: - main - develop - paths-ignore: - - 'lua/**' # Ignore changes to the Lua code + paths: + - 'cmd/**' # Ignore changes to the Lua code + - 'go.sum' + - 'go.mod' jobs: go_lint: name: Lint Go 💅 diff --git a/.github/workflows/lua.yaml b/.github/workflows/lua.yaml index aa1a78f6..a8998468 100644 --- a/.github/workflows/lua.yaml +++ b/.github/workflows/lua.yaml @@ -4,8 +4,8 @@ on: branches: - main - develop - paths-ignore: - - 'cmd/**' # Ignore changes to the Go code + paths: + - 'lua/**' # Ignore changes to the Go code jobs: lua_lint: name: Lint Lua 💅