Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid get() invocation for builtin hooks #23

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

elsesiy
Copy link

@elsesiy elsesiy commented Jul 31, 2024

f37e1a2#diff-8c3e398fc7377f10e5b7c253c3fa3954c027b4cab0960566faae41277f53fa1aL40 removed the get() function and cleaned up most references to it except for hooks.lua

Without this patch updating the current buffer (especially if empty) fails

Error executing vim.schedule lua callback: ...e/nvim/lazy/git-worktree.nvim/lua/git-worktree/hooks.lua:70: attempt
to call field 'get' (a nil value)
stack traceback:
        ...e/nvim/lazy/git-worktree.nvim/lua/git-worktree/hooks.lua:70: in function 'hook'
        ...e/nvim/lazy/git-worktree.nvim/lua/git-worktree/hooks.lua:43: in function 'emit'
        ...vim/lazy/git-worktree.nvim/lua/git-worktree/worktree.lua:74: in function <...vim/lazy/git-worktree.nvim/
lua/git-worktree/worktree.lua:72>

Brian Ryall and others added 3 commits July 18, 2024 14:32
should be able to use path_display = { "truncate" } in telescope config
@elsesiy elsesiy marked this pull request as ready for review July 31, 2024 20:03
@polarmutex polarmutex merged commit c68a4b4 into polarmutex:devel Aug 7, 2024
5 checks passed
@elsesiy elsesiy deleted the fix-hooks-config branch August 7, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants