local telescope = require('telescope')

telescope.setup({
    defaults = {
        mappings = {
            i = {
                ['<c-u>'] = false,
                ['<c-d>'] = false,
                ['jj'] = require('telescope.actions').close,
                ['<esc>'] = require('telescope.actions').close,
            },
        },
        vimgrep_arguments = {
            'rg',
            '--hidden',
            '--no-heading',
            '--with-filename',
            '--line-number',
            '--column',
            '--smart-case',
        },
    },
})

telescope.load_extension('lsp_handlers')

require('which-key').register({
    f = {
        name = '+find',
        b = { [[<cmd>Telescope buffers<cr>]], 'Buffers' },
        f = { [[<cmd>Telescope find_files<cr>]], 'Files' },
        g = { [[<cmd>Telescope git_status<cr>]], 'Git status' },
        o = { [[<cmd>Telescope oldfiles<cr>]], 'Oldfiles' },
        ['/'] = { [[<cmd>Telescope live_grep<cr>]], 'Live grep' },
    },
}, {
    prefix = '<leader>',
})

local telescope = require('telescope')

telescope.setup({
    defaults = {
        mappings = {
            i = {
                ['<c-u>'] = false,
                ['<c-d>'] = false,
                ['jj'] = require('telescope.actions').close,
                ['<esc>'] = require('telescope.actions').close,
            },
        },
        vimgrep_arguments = {
            'rg',
            '--hidden',
            '--no-heading',
            '--with-filename',
            '--line-number',
            '--column',
            '--smart-case',
        },
    },
})

telescope.load_extension('lsp_handlers')

require('which-key').register({
    f = {
        name = '+find',
        b = { [[<cmd>Telescope buffers<cr>]], 'Buffers' },
        f = { [[<cmd>Telescope find_files<cr>]], 'Files' },
        g = { [[<cmd>Telescope git_status<cr>]], 'Git status' },
        o = { [[<cmd>Telescope oldfiles<cr>]], 'Oldfiles' },
        ['/'] = { [[<cmd>Telescope grep_string<cr>]], 'Grep string' },
    },
}, {
    prefix = '<leader>',
})

Change live_grep to grep_string as more useful
Change live_grep to grep_string as more useful
