From 81f036c147226fab3efe1915149ca03ac1e4ee3f Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 12 Jan 2025 10:01:15 +0100 Subject: [PATCH] nvim: use mini.visits for history w/frecency --- home/common/nvim/init.lua | 1 + home/common/nvim/mini.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/home/common/nvim/init.lua b/home/common/nvim/init.lua index 0885481..258d834 100644 --- a/home/common/nvim/init.lua +++ b/home/common/nvim/init.lua @@ -133,6 +133,7 @@ vim.keymap.set({ "n", "v" }, "a", vim.lsp.buf.code_action, { remap = tru vim.keymap.set("n", "af", function() vim.lsp.buf.format({ async = true }) end, opts("Format Buffer")) +vim.keymap.set('n', '', "Pick visit_paths cwd=''", opts("Visits")) vim.keymap.set('n', 'b', "Pick buffers", opts("Open buffer picker")) vim.keymap.set('n', '/', "Pick grep_live_root", opts("Search workspace files")) vim.keymap.set('n', 'd', "Pick diagnostic", opts("Open diagnostics picker")) diff --git a/home/common/nvim/mini.lua b/home/common/nvim/mini.lua index 0499268..215b734 100644 --- a/home/common/nvim/mini.lua +++ b/home/common/nvim/mini.lua @@ -10,6 +10,7 @@ require('mini.jump').setup() require('mini.surround').setup() require('mini.splitjoin').setup() require('mini.trailspace').setup() +require('mini.visits').setup() require('mini.cursorword').setup({ delay = 800