nvim/lua/lucxjo/plugins/telescope.lua
Louis Hollingworth c5000e27eb
New neovim config.
I've been using neovim for a while but the config got messy so here is a
cleaner config.

Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
2024-03-02 13:31:01 +00:00

21 lines
775 B
Lua

return {
{
'nvim-telescope/telescope.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope-fzf-native.nvim',
},
config = function()
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
end,
},
{
'nvim-telescope/telescope-fzf-native.nvim',
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build'
},
}