From 00e98d207c76d34d9c6b80395c86cc90ee0e6f80 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Mon, 20 Jun 2022 13:40:52 -0700 Subject: [PATCH] feat: Add an extension for man pages (#714) This will be used with Neovim's built-in `:Man` command and `man` filetype. --- README.md | 1 + lua/lualine/extensions/man.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lua/lualine/extensions/man.lua diff --git a/README.md b/README.md index 6529e92..0666378 100644 --- a/README.md +++ b/README.md @@ -755,6 +755,7 @@ extensions = {'quickfix'} - fern - fugitive - fzf +- man - nerdtree - neo-tree - nvim-tree diff --git a/lua/lualine/extensions/man.lua b/lua/lualine/extensions/man.lua new file mode 100644 index 0000000..ba976de --- /dev/null +++ b/lua/lualine/extensions/man.lua @@ -0,0 +1,16 @@ +local M = {} + +M.sections = { + lualine_a = { + function() + return 'MAN' + end, + }, + lualine_b = { { 'filename', file_status = false } }, + lualine_y = { 'progress' }, + lualine_z = { 'location' }, +} + +M.filetypes = { 'man' } + +return M