From 1ae4f0aa74f0b34222c5ef3281b34602a76b2b00 Mon Sep 17 00:00:00 2001 From: YONG LI Date: Sun, 28 Nov 2021 19:00:34 +0800 Subject: [PATCH] Support symbols-outline extension (#456) * Support symbols-outline extension. --- README.md | 1 + doc/lualine.txt | 1 + lua/lualine/extensions/symbols-outline.lua | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 lua/lualine/extensions/symbols-outline.lua diff --git a/README.md b/README.md index 86f481f..8def035 100644 --- a/README.md +++ b/README.md @@ -630,6 +630,7 @@ extensions = {'quickfix'} * nvim-tree * quickfix * toggleterm +* symbols-outline #### Custom extensions diff --git a/doc/lualine.txt b/doc/lualine.txt index 04a08a7..afbe426 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -656,6 +656,7 @@ extensions with: - nvim-tree - quickfix - toggleterm +- symbols-outline *lualine-Custom-extensions* diff --git a/lua/lualine/extensions/symbols-outline.lua b/lua/lualine/extensions/symbols-outline.lua new file mode 100644 index 0000000..78ca9bc --- /dev/null +++ b/lua/lualine/extensions/symbols-outline.lua @@ -0,0 +1,9 @@ +-- Copyright (c) 2020-2021 hoob3rt +-- MIT license, see LICENSE for more details. +local M = {} + +M.sections = { lualine_a = { 'filetype' } } + +M.filetypes = { 'Outline' } + +return M