feat: add fern extension (#398)

* Add fern extension

Fern[^1] is general purpose tree view that can browse and manipulate
file trees. This extension provides a simple and useful statusline for
fern buffers.

[^1]: https://github.com/lambdalisue/fern.vim

* Reuse nerdtree code for fern

* doc: mention fern in README

Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
This commit is contained in:
Mark Story 2021-10-25 23:21:38 -04:00 committed by GitHub
parent ef063f72b4
commit 61cd6e6ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -605,6 +605,7 @@ extensions = {'quickfix'}
<summary><b>Available extensions</b></summary>
* chadtree
* fern
* fugitive
* fzf
* nerdtree

View File

@ -604,6 +604,7 @@ Available extensions ~
- chadtree
- fern
- fugitive
- fzf
- nerdtree

View File

@ -0,0 +1,11 @@
-- MIT license, see LICENSE for more details.
-- Extension for fern file explorer.
local nerdtree = require 'lualine.extensions.nerdtree'
local M = {}
M.sections = vim.deepcopy(nerdtree.sections)
M.filetypes = { 'fern' }
return M