Skip to content

feat: adds support for non-submodule repos#5

Open
agoodshort wants to merge 1 commit intomainfrom
non-submodule-repos
Open

feat: adds support for non-submodule repos#5
agoodshort wants to merge 1 commit intomainfrom
non-submodule-repos

Conversation

@agoodshort
Copy link
Copy Markdown
Owner

@agoodshort agoodshort commented Feb 22, 2024

Feature request from #3
This PR adds support for non-submodule repos by parsing through the directories to find .git.

The following default extension's configs were added to support this feature:

find_subdirectories = {
    enabled = false,
    depth = 1
}

Next steps

  • Add documentation in README.md
  • Tested/Reviewed by a user
  • Remove print() lines

@agoodshort agoodshort force-pushed the non-submodule-repos branch from 94d4778 to d72233c Compare March 7, 2024 14:50
@agoodshort
Copy link
Copy Markdown
Owner Author

Found an issue while testing, taking note here to refer to later when I have some time to look at it.

When find_subdirectories is enabled and on a neo-tree window I receive the below error:

E5108: Error executing lua: ...odules.nvim/lua/telescope/_extensions/git_submodules.lua:21: attempt to index a nil value
stack traceback:
	...odules.nvim/lua/telescope/_extensions/git_submodules.lua:21: in function 'open_git_tool'
	...odules.nvim/lua/telescope/_extensions/git_submodules.lua:209: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:269: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:268>

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.

1 participant