From 6808767d0f8bb36cee3f65358af47fddb671df7b Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 10 Dec 2021 16:38:33 +0100 Subject: Some updates --- lua/alpha/status-line.lua | 2 +- lua/alpha/telescope.lua | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'lua') 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 -- cgit v1.2.3