1
0
neovim_config/lua/barink/plugins/telescope.lua

22 lines
820 B
Lua
Raw Normal View History

2024-03-28 18:34:49 +00:00
local os = vim.loop.os_uname().sysname
return {
{
"nvim-telescope/telescope.nvim",
dependencies = {
2024-03-28 18:34:49 +00:00
{'nvim-lua/plenary.nvim'},
{
'nvim-telescope/telescope-fzf-native.nvim',
build ="cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
2024-03-28 18:34:49 +00:00
}
},
config = function()
2024-03-28 18:34:49 +00:00
require('telescope').setup({})
require('telescope').load_extension('fzf')
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fs', builtin.git_files, {})
end
}
}