Skip to content

Commit abd7881

Browse files
committed
Update README
1 parent 72b7976 commit abd7881

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ using multiple then you must provide an array table for `provider`.
8383
-- source provider function
8484
local diagnostic = require('galaxyline.provider_diagnostic')
8585
local vcs = require('galaxyline.provider_vcs')
86+
local search = require('galaxyline.provider_search')
8687
local fileinfo = require('galaxyline.provider_fileinfo')
8788
local extension = require('galaxyline.provider_extensions')
8889
local colors = require('galaxyline.colors')
8990
local buffer = require('galaxyline.provider_buffer')
9091
local whitespace = require('galaxyline.provider_whitespace')
9192
local lspclient = require('galaxyline.provider_lsp')
9293

93-
-- provider
94+
-- provider
9495
BufferIcon = buffer.get_buffer_type_icon,
9596
BufferNumber = buffer.get_buffer_number,
9697
FileTypeName = buffer.get_buffer_filetype,
@@ -99,6 +100,8 @@ GitBranch = vcs.get_git_branch,
99100
DiffAdd = vcs.diff_add, -- support vim-gitgutter vim-signify gitsigns
100101
DiffModified = vcs.diff_modified, -- support vim-gitgutter vim-signify gitsigns
101102
DiffRemove = vcs.diff_remove, -- support vim-gitgutter vim-signify gitsigns
103+
-- Search Provider
104+
SearchResults = search.get_search_results,
102105
-- File Provider
103106
LineColumn = fileinfo.line_column,
104107
FileFormat = fileinfo.get_file_format,
@@ -133,7 +136,7 @@ local condition = require('galaxyline.condition')
133136
condition.buffer_not_empty -- if buffer not empty return true else false
134137
condition.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
139142
local colors = require('galaxyline.theme').default

0 commit comments

Comments
 (0)