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:
parent
ef063f72b4
commit
61cd6e6ef8
|
@ -605,6 +605,7 @@ extensions = {'quickfix'}
|
||||||
<summary><b>Available extensions</b></summary>
|
<summary><b>Available extensions</b></summary>
|
||||||
|
|
||||||
* chadtree
|
* chadtree
|
||||||
|
* fern
|
||||||
* fugitive
|
* fugitive
|
||||||
* fzf
|
* fzf
|
||||||
* nerdtree
|
* nerdtree
|
||||||
|
|
|
@ -604,6 +604,7 @@ Available extensions ~
|
||||||
|
|
||||||
|
|
||||||
- chadtree
|
- chadtree
|
||||||
|
- fern
|
||||||
- fugitive
|
- fugitive
|
||||||
- fzf
|
- fzf
|
||||||
- nerdtree
|
- nerdtree
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue