summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/keymaps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config/lua/keymaps.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/keymaps.lua29
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua
index 535962d..67d61cf 100644
--- a/pkgs/custom-neovim/config/lua/keymaps.lua
+++ b/pkgs/custom-neovim/config/lua/keymaps.lua
@@ -12,13 +12,14 @@ end
vim.g.mapleader = " "
-- Pickers
-mapkey("n", "<leader>f", "Open file picker", ":FzfLua files<cr>", "fzf-lua")
-mapkey("n", "<leader>o", "Open old file picker", ":FzfLua oldfiles<cr>", "fzf-lua")
-mapkey("n", "<leader>/", "Open live grep picker", ":FzfLua live_grep<cr>", "fzf-lua")
-mapkey("n", "<leader>k", "Open colorscheme picker", ":FzfLua colorschemes<cr>", "fzf-lua")
-mapkey("n", "<leader>z", "Open zoxide picker", ":FzfLua zoxide<cr>", "fzf-lua")
-mapkey("n", "<leader>L", "Open cd picker", ":lua Custom_pickers.fzf_dir_cd()<cr>", "fzf-lua")
-mapkey("n", "<leader>l", "Open tab cd picker", ":lua Custom_pickers.fzf_dir_tcd()<cr>", "fzf-lua")
+mapkey("n", "<leader>f", "Open file picker", ":Pick files<cr>", "mini.pick")
+mapkey("n", "<leader>o", "Open old file picker", ":Pick oldfiles<cr>", "mini.pick")
+mapkey("n", "<leader>/", "Open live grep picker", ":Pick grep_live<cr>", "mini.pick")
+mapkey("n", "<leader>k", "Open colorscheme picker", ":Pick colorschemes<cr>", "mini.pick")
+mapkey("n", "<leader>:", "Open command history picker", ":Pick history<cr>", "mini.pick")
+-- mapkey("n", "<leader>z", "Open zoxide picker", ":FzfLua zoxide<cr>", "fzf-lua")
+-- mapkey("n", "<leader>L", "Open cd picker", ":lua Custom_pickers.fzf_dir_cd()<cr>", "fzf-lua")
+-- mapkey("n", "<leader>l", "Open tab cd picker", ":lua Custom_pickers.fzf_dir_tcd()<cr>", "fzf-lua")
-- File manager
mapkey("n", "<leader>e", "Open file manager", ":lua MiniFiles.open()<cr>", "mini.files")
@@ -29,10 +30,10 @@ mapkey("n", "<leader>ga", "Git add", ":Git add %:p<cr>", "mini-git")
mapkey("n", "<leader>gA", "Git add cwd", function() vim.cmd("Git add " .. vim.fn.getcwd() .. "/.") end, "mini-git")
mapkey("n", "<leader>gr", "Git remove", ":Git rm %:p<cr>", "mini-git")
mapkey("n", "<leader>gc", "Git commit", ":Git commit<cr>", "mini-git")
-mapkey("n", "<leader>gC", "Browse git commits", ":FzfLua git_commits<cr>", "fzf-lua")
-mapkey("n", "<leader>gb", "Browse git branches", ":FzfLua git_branches<cr>", "fzf-lua")
-mapkey("n", "<leader>gB", "Browse git blame", ":FzfLua git_blame<cr>", "fzf-lua")
-mapkey("n", "<leader>gg", "Git status", ":FzfLua git_status<cr>", "fzf-lua")
+mapkey("n", "<leader>gC", "Browse git commits", ":Pick git_commits<cr>", "mini.pick")
+mapkey("n", "<leader>gb", "Browse git branches", ":Pick git_branches<cr>", "mini.pick")
+-- mapkey("n", "<leader>gB", "Browse git blame", ":FzfLua git_blame<cr>", "fzf-lua")
+-- mapkey("n", "<leader>gg", "Git status", ":FzfLua git_status<cr>", "fzf-lua")
mapkey("n", "<leader>gp", "Git pull", ":Git pull<cr>", "mini-git")
mapkey("n", "<leader>gP", "Git push", ":Git push<cr>", "mini-git")
@@ -42,11 +43,11 @@ mapkey("n", "<leader>tt", "Go to next tab", ":tabn<cr>")
mapkey("n", "<leader>tT", "Go to previous tab", ":tabp<cr>")
mapkey("n", "<leader>to", "Open new tab", ":tabnew<cr>")
mapkey("n", "<leader>tc", "Close current tab", ":tabclose<cr>")
-mapkey("n", "<leader>tp", "Pick tabs", ":FzfLua tabs", "fzf-lua")
+-- mapkey("n", "<leader>tp", "Pick tabs", ":FzfLua tabs", "fzf-lua")
-- Buffers
mapkey("n", "<leader>b", "Manage buffers", "")
-mapkey("n", "<leader>bb", "Open buffer picker", ":FzfLua buffers<cr>", "fzf-lua")
+mapkey("n", "<leader>bb", "Open buffer picker", ":Pick buffers<cr>", "mini.pick")
mapkey("n", "<leader>bc", "Clear invisible buffers", function ()
local bufinfos = vim.fn.getbufinfo({buflisted = 1})
vim.tbl_map(function (bufinfo)
@@ -63,7 +64,7 @@ mapkey("n", "<leader>jb", "Create comment box", ":CB")
-- Session
mapkey("n", "<leader>w", "Manage sessions", "")
-mapkey("n", "<leader>ww", "Manage Sessions", ":AutoSession search<cr>", "fzf-lua")
+mapkey("n", "<leader>ww", "Manage Sessions", ":AutoSession search<cr>", "mini.pick")
mapkey("n", "<leader>ws", "Save current session", ":AutoSession save<cr>")
mapkey("n", "<leader>wr", "Open last session", ":AutoSession restore<cr>")
mapkey("n", "<leader>wp", "Purge orphaned sessions", ":AutoSession purgeOrphaned<cr>")