@@ -83,14 +83,15 @@ using multiple then you must provide an array table for `provider`.
8383-- source provider function
8484local diagnostic = require (' galaxyline.provider_diagnostic' )
8585local vcs = require (' galaxyline.provider_vcs' )
86+ local search = require (' galaxyline.provider_search' )
8687local fileinfo = require (' galaxyline.provider_fileinfo' )
8788local extension = require (' galaxyline.provider_extensions' )
8889local colors = require (' galaxyline.colors' )
8990local buffer = require (' galaxyline.provider_buffer' )
9091local whitespace = require (' galaxyline.provider_whitespace' )
9192local lspclient = require (' galaxyline.provider_lsp' )
9293
93- -- provider
94+ -- provider
9495BufferIcon = buffer .get_buffer_type_icon ,
9596BufferNumber = buffer .get_buffer_number ,
9697FileTypeName = buffer .get_buffer_filetype ,
@@ -99,6 +100,8 @@ GitBranch = vcs.get_git_branch,
99100DiffAdd = vcs .diff_add , -- support vim-gitgutter vim-signify gitsigns
100101DiffModified = vcs .diff_modified , -- support vim-gitgutter vim-signify gitsigns
101102DiffRemove = vcs .diff_remove , -- support vim-gitgutter vim-signify gitsigns
103+ -- Search Provider
104+ SearchResults = search .get_search_results ,
102105-- File Provider
103106LineColumn = fileinfo .line_column ,
104107FileFormat = fileinfo .get_file_format ,
@@ -133,7 +136,7 @@ local condition = require('galaxyline.condition')
133136condition .buffer_not_empty -- if buffer not empty return true else false
134137condition .hide_in_width -- if winwidth(0)/ 2 > 40 true else false
135138-- find git root, you can use this to check if the project is a git workspace
136- condition .check_git_workspace ()
139+ condition .check_git_workspace ()
137140
138141-- built-in theme
139142local colors = require (' galaxyline.theme' ).default
0 commit comments