diff --git a/README.md b/README.md index 4c0399871..fda1d21fd 100644 --- a/README.md +++ b/README.md @@ -946,6 +946,7 @@ extensions = {'quickfix'} - symbols-outline - toggleterm - trouble +- tagbar #### Custom extensions diff --git a/lua/lualine/extensions/tagbar.lua b/lua/lualine/extensions/tagbar.lua new file mode 100644 index 000000000..e431fd70c --- /dev/null +++ b/lua/lualine/extensions/tagbar.lua @@ -0,0 +1,14 @@ +local M = {} + +M.sections = { + --lualine_a = {function() return vim.fn['tagbar#currentfile']() end} + lualine_a = { + function() + return 'tagbar' + end, + }, +} + +M.filetypes = { 'tagbar' } + +return M