2024-03-28 18:34:49 +00:00
|
|
|
local os = vim.loop.os_uname().sysname
|
2024-03-26 11:51:53 +00:00
|
|
|
return {
|
2024-03-26 20:07:08 +00:00
|
|
|
{
|
|
|
|
"nvim-telescope/telescope.nvim",
|
|
|
|
dependencies = {
|
2024-03-28 18:34:49 +00:00
|
|
|
{'nvim-lua/plenary.nvim'},
|
|
|
|
{
|
|
|
|
'nvim-telescope/telescope-fzf-native.nvim',
|
|
|
|
build = function () if os == 'Windows_NT' then
|
|
|
|
print("You are on Windows, Idiot!!!")
|
|
|
|
return [[
|
|
|
|
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
|
|
|
&& cmake --build build --config Release
|
|
|
|
&& cmake --install build --prefix build
|
|
|
|
]] else
|
|
|
|
return 'make' end
|
|
|
|
end,
|
|
|
|
}
|
2024-03-26 20:07:08 +00:00
|
|
|
},
|
|
|
|
config = function()
|
2024-03-28 18:34:49 +00:00
|
|
|
require('telescope').setup({})
|
|
|
|
require('telescope').load_extension('fzf')
|
2024-03-26 20:07:08 +00:00
|
|
|
local builtin = require('telescope.builtin')
|
2024-03-26 11:51:53 +00:00
|
|
|
|
2024-03-26 20:07:08 +00:00
|
|
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
|
|
|
vim.keymap.set('n', '<leader>fs', builtin.git_files, {})
|
|
|
|
end
|
|
|
|
}
|
2024-03-26 11:51:53 +00:00
|
|
|
}
|