diff --git a/README.md b/README.md index 6962418..053ae8e 100644 --- a/README.md +++ b/README.md @@ -605,6 +605,7 @@ extensions = {'quickfix'} Available extensions * chadtree +* fern * fugitive * fzf * nerdtree diff --git a/doc/lualine.txt b/doc/lualine.txt index 3132616..834e951 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -604,6 +604,7 @@ Available extensions ~ - chadtree +- fern - fugitive - fzf - nerdtree diff --git a/lua/lualine/extensions/fern.lua b/lua/lualine/extensions/fern.lua new file mode 100644 index 0000000..39f5e91 --- /dev/null +++ b/lua/lualine/extensions/fern.lua @@ -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