Skip to content

Use which-function to find the current function name#38

Open
dgchurchill wants to merge 1 commit intosebasmonia:masterfrom
dgchurchill:master
Open

Use which-function to find the current function name#38
dgchurchill wants to merge 1 commit intosebasmonia:masterfrom
dgchurchill:master

Conversation

@dgchurchill
Copy link

Hi, thanks for this package! Here's a small update to find the current method/function name using which-function. This should work for any Treesitter mode (e.g. csharp-ts-mode) because they hook up treesit-add-log-current-defun to find the function name. It should work elsewhere too and I think it's the standard way of finding the function name.

@sebasmonia
Copy link
Owner

Thanks for your PR! And glad Sharper is useful for you.

I will test the code and report back - my sense is that non-TS users will still need an alternative. But maybe (which-function) really is enough on its own!

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