From 8f75e65878269f6cd2eb988caef08515c1008dad Mon Sep 17 00:00:00 2001 From: Benedikt Rips Date: Fri, 15 Jul 2022 13:52:49 +0200 Subject: [PATCH] feat(extension): Extension for the Mundo plugin (#740) * Add an extension for the mundo plugin * List the mundo extension --- README.md | 5 +++-- lua/lualine/extensions/mundo.lua | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 lua/lualine/extensions/mundo.lua diff --git a/README.md b/README.md index 1c679eb..786471e 100644 --- a/README.md +++ b/README.md @@ -442,7 +442,7 @@ sections = { mode = 0, -- 0: Shows buffer name -- 1: Shows buffer index - -- 2: Shows buffer name + buffer index + -- 2: Shows buffer name + buffer index -- 3: Shows buffer number -- 4: Shows buffer name + buffer number @@ -756,9 +756,10 @@ extensions = {'quickfix'} - fugitive - fzf - man +- mundo - neo-tree - nerdtree -- nvim-dap-ui +- nvim-dap-ui - nvim-tree - quickfix - symbols-outline diff --git a/lua/lualine/extensions/mundo.lua b/lua/lualine/extensions/mundo.lua new file mode 100644 index 0000000..e8be4aa --- /dev/null +++ b/lua/lualine/extensions/mundo.lua @@ -0,0 +1,20 @@ +local M = {} + +M.sections = { + lualine_a = { + function() + local ft = vim.opt_local.filetype:get() + return (ft == "Mundo") and "Change tree" + or (ft == "MundoDiff") and "Change diff" + end + }, + lualine_y = { "progress" }, + lualine_z = { "location" }, +} + +M.filetypes = { + "Mundo", + "MundoDiff", +} + +return M