diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/status-line.lua | 2 | ||||
| -rw-r--r-- | lua/alpha/telescope.lua | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lua/alpha/status-line.lua b/lua/alpha/status-line.lua index 7e31975..e504b2d 100644 --- a/lua/alpha/status-line.lua +++ b/lua/alpha/status-line.lua @@ -8,7 +8,7 @@ require('lualine').setup{ lualine_a = { { 'mode', upper = true } }, lualine_b = { { 'branch', icon = '' }, 'diff' }, lualine_c = { { 'filename', file_status = true, path = 1 } }, - lualine_x = { { 'diagnostics', sources = { 'nvim_lsp' } },'encoding', 'fileformat', 'filetype' }, + lualine_x = { { 'diagnostics', sources = { 'nvim_diagnostic' } },'encoding', 'fileformat', 'filetype' }, lualine_y = { 'progress' }, lualine_z = { 'location' }, }, diff --git a/lua/alpha/telescope.lua b/lua/alpha/telescope.lua index daa4cd8..0033e7a 100644 --- a/lua/alpha/telescope.lua +++ b/lua/alpha/telescope.lua @@ -56,4 +56,13 @@ end M.laravel_artisan = require('alpha.telescope_laravel').artisan M.project_find = require('alpha.telescope_projectionist').find +M.grep_string = function () + vim.ui.input("Grep for > ", function (input) + if input == nil then + return + end + require('telescope.builtin').grep_string({ search = input}) + end) +end + return M |