~toastal/lualine.nvim

d3f3395b9184b0f8d82ce2bf2d8c51af18c040f4 — Jethro Cao 8 months ago 7533b0e
feat: Add ctrlspace extension (#1121)

2 files changed, 14 insertions(+), 1 deletions(-)

M README.md
A lua/lualine/extensions/ctrlspace.lua
M README.md => README.md +2 -1
@@ 900,11 900,13 @@ extensions = {'quickfix'}

- aerial
- chadtree
- ctrlspace
- fern
- fugitive
- fzf
- lazy
- man
- mason
- mundo
- neo-tree
- nerdtree


@@ 915,7 917,6 @@ extensions = {'quickfix'}
- symbols-outline
- toggleterm
- trouble
- mason

#### Custom extensions


A lua/lualine/extensions/ctrlspace.lua => lua/lualine/extensions/ctrlspace.lua +12 -0
@@ 0,0 1,12 @@
local M = {}

M.sections = {
  lualine_a = { function() return vim.fn['ctrlspace#context#Configuration']().Symbols.CS end },
  lualine_b = { 'ctrlspace#api#StatuslineModeSegment' },
  lualine_y = { 'ctrlspace#api#StatuslineTabSegment' },
  lualine_z = { function() return 'CtrlSpace' end },
}

M.filetypes = { 'ctrlspace' }

return M