Buffer manager and telescope keybindings

This commit is contained in:
Saeed Afzal
2024-06-09 16:47:41 +01:00
parent 327e221872
commit 392cf4b961
4 changed files with 15 additions and 2 deletions

View File

@@ -1,9 +1,12 @@
return {
"wakatime/vim-wakatime",
{
"nvim-lualine/lualine.nvim",
requires = "nvim-tree/nvim-web-devicons",
config = true
},
{
"j-morano/buffer_manager.nvim",
requires = "nvim-lua/plenary.nvim"
}
}

View File

@@ -16,5 +16,11 @@ return {
vim.keymap.set("n", "<leader>fw", builtin.live_grep, {})
vim.keymap.set("n", "<leader>fb", builtin.buffers, {})
vim.keymap.set("n", "<C-f>", builtin.current_buffer_fuzzy_find, {})
-- Visual word highlight
local default_opts = {noremap = true, silent = true}
vim.api.nvim_set_keymap("v", "<C-f>", "y<ESC>:Telescope current_buffer_fuzzy_find default_text=<c-r>0<CR>", {})
vim.api.nvim_set_keymap("v", "<leader>fw", "y<ESC>:Telescope live_grep default_text=<c-r>0<CR>", {})
vim.api.nvim_set_keymap("v", "<leader>ff", "y<ESC>:Telescope fd default_text=<c-r>0<CR>", {})
end
}