Buffer manager and telescope keybindings
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"lazy.nvim": { "branch": "main", "commit": "8f19915175395680808de529e4220da8dafc0759" },
|
||||
"buffer_manager.nvim": { "branch": "main", "commit": "fd36131b2b3e0f03fd6353ae2ffc88cf920b3bbb" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "24fa2a97085ca8a7220b5b078916f81e316036fd" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
|
||||
|
||||
@@ -21,3 +21,6 @@ map("n", "<leader>h", ":noh<CR>")
|
||||
|
||||
-- Replace (visual)
|
||||
map("v", "<leader>r", "\"hy:%s/<C-r>h//g<left><left>")
|
||||
|
||||
-- Buffer manager
|
||||
map("n", "<leader>b", ":lua require(\"buffer_manager.ui\").toggle_quick_menu()<CR>")
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user