Skip to content

Commit

Permalink
feat: Add ctrlspace extension (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyscao authored Oct 20, 2023
1 parent 7533b0e commit d3f3395
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,13 @@ extensions = {'quickfix'}

- aerial
- chadtree
- ctrlspace
- fern
- fugitive
- fzf
- lazy
- man
- mason
- mundo
- neo-tree
- nerdtree
Expand All @@ -915,7 +917,6 @@ extensions = {'quickfix'}
- symbols-outline
- toggleterm
- trouble
- mason

#### Custom extensions

Expand Down
12 changes: 12 additions & 0 deletions lua/lualine/extensions/ctrlspace.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d3f3395

Please sign in to comment.