feat(extension): Extension for the Mundo plugin (#740)

* Add an extension for the mundo plugin

* List the mundo extension
This commit is contained in:
Benedikt Rips 2022-07-15 13:52:49 +02:00 committed by GitHub
parent 588cf4185b
commit 8f75e65878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -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

View File

@ -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