SmiteshP / nvim-gps

Simple statusline component that shows what scope you are working inside
Apache License 2.0
478 stars 47 forks source link

Allow custom options argument in `get_location()` #71

Closed mawkler closed 2 years ago

mawkler commented 2 years ago

This adds the option to pass an opts table to get_location() which overrides the default config that was set when calling setup(). This allows you to, for instance, call get_location() with a shorter depth as shown in the example config for feline.nvim that I added to README.md, with a truncated component version of nvim-gps.

The opts parameter allows you to override depth, separator and/or depth_limit_indicator.

SmiteshP commented 2 years ago

Thanks for the PR! I understand the use case. However I won't merge this as of now, I will try to get #68 done before I do this.