https://github.com/sevenc-nanashi/rootfinder.vim
Vim plugin that adds g:rootfinder#find function.
https://github.com/sevenc-nanashi/rootfinder.vim
vim vim-plugin
Last synced: 9 months ago
JSON representation
Vim plugin that adds g:rootfinder#find function.
- Host: GitHub
- URL: https://github.com/sevenc-nanashi/rootfinder.vim
- Owner: sevenc-nanashi
- License: mit
- Created: 2022-10-08T06:54:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T22:35:49.000Z (over 3 years ago)
- Last Synced: 2025-10-03T12:41:29.205Z (9 months ago)
- Topics: vim, vim-plugin
- Language: Vim Script
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rootfinder.vim
rootfinder is a Vim plugin that adds `g:rootfinder#find` function.
## Example usage
```vim
let root = g:rootfinder#find(expand('%:p:h'))
if len(root) < 1
let root = '.'
endif
execute 'Fern ' .. fnameescape(root) .. ' -drawer -width=40'
```
You can add more file/directory name with `g:rootfinder#pattern_extend`:
```vim
let g:rootfinder#pattern_extend = ['.my-root-file']
```
## License
This plugin is open source under MIT license.