Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ In order to make the best use of this config, you must meet the following prereq
- `NVIM v0.7` or later versions
- `unzip`
- `curl`
- `node.js` and `npm` or `pnpm` or 'yarn'
- `node.js` and `npm` or `pnpm` or `yarn`'
- `ripgrep` or `fd` for [Fuzzy Finder Telescope](https://github.com/BurntSushi/ripgrep)
- for clipboard `xclip` or `xsel` for xorg and `wl-clipboard` for wayland
- `git`
- `bash` or `dash` and for windows `PowerShell v5.1` or later
- Just for windows `Scoop.sh`
- [Nerd fonts](https://github.com/ryanoasis/nerd-fonts) install `Nerd Fonts` from repo
- install [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts)

### Screenshots

Expand All @@ -38,7 +38,7 @@ Show
![autocompelet](https://user-images.githubusercontent.com/27810360/215936237-96bc8604-1597-4aa9-bbfb-4709cae73016.png)

![NeoVide](https://user-images.githubusercontent.com/27810360/181910971-43f34b7f-116a-4981-a9d6-37db0c1526f1.png)

![Fuzzy Finder](https://user-images.githubusercontent.com/48873115/217238383-51c83389-ef78-414c-bdda-2896033ce389.png)

![CmdLine](https://user-images.githubusercontent.com/27810360/181955593-80e4480b-e158-4be7-abe0-0509072d1118.png)
Expand Down
36 changes: 16 additions & 20 deletions lua/packages/telescope.lua
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
-- import telescope plugin safely
local telescope_setup, telescope = pcall(require, "telescope")
local telescope = require("telescope")
-- import telescope actions safely
local actions_setup, actions = pcall(require, "telescope.actions")
local actions = require("telescope.actions")

if telescope_setup and actions_setup then
-- configure telescope
telescope.setup({
-- configure custom mappings
defaults = {
mappings = {
i = {
["<C-k>"] = actions.move_selection_previous, -- move to prev result
["<C-j>"] = actions.move_selection_next, -- move to next result
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist, -- send selected to quickfixlist
},
},
},
})
-- configure telescope
telescope.setup({
-- configure custom mappings
defaults = {
mappings = {
i = {
["<C-k>"] = actions.move_selection_previous, -- move to prev result
["<C-j>"] = actions.move_selection_next, -- move to next result
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist, -- send selected to quickfixlist
},
},
},
})

telescope.load_extension("fzf")
else
return
end
telescope.load_extension("fzf")