nvim: use mini.visits for history w/frecency
This commit is contained in:
parent
f8c7a5ecfe
commit
81f036c147
2 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,7 @@ vim.keymap.set({ "n", "v" }, "<Leader>a", vim.lsp.buf.code_action, { remap = tru
|
||||||
vim.keymap.set("n", "<Leader>af", function()
|
vim.keymap.set("n", "<Leader>af", function()
|
||||||
vim.lsp.buf.format({ async = true })
|
vim.lsp.buf.format({ async = true })
|
||||||
end, opts("Format Buffer"))
|
end, opts("Format Buffer"))
|
||||||
|
vim.keymap.set('n', '<Leader><Leader>', "<cmd>Pick visit_paths cwd=''<cr>", opts("Visits"))
|
||||||
vim.keymap.set('n', '<Leader>b', "<cmd>Pick buffers<cr>", opts("Open buffer picker"))
|
vim.keymap.set('n', '<Leader>b', "<cmd>Pick buffers<cr>", opts("Open buffer picker"))
|
||||||
vim.keymap.set('n', '<Leader>/', "<cmd>Pick grep_live_root<cr>", opts("Search workspace files"))
|
vim.keymap.set('n', '<Leader>/', "<cmd>Pick grep_live_root<cr>", opts("Search workspace files"))
|
||||||
vim.keymap.set('n', '<Leader>d', "<cmd>Pick diagnostic<cr>", opts("Open diagnostics picker"))
|
vim.keymap.set('n', '<Leader>d', "<cmd>Pick diagnostic<cr>", opts("Open diagnostics picker"))
|
||||||
|
|
|
@ -10,6 +10,7 @@ require('mini.jump').setup()
|
||||||
require('mini.surround').setup()
|
require('mini.surround').setup()
|
||||||
require('mini.splitjoin').setup()
|
require('mini.splitjoin').setup()
|
||||||
require('mini.trailspace').setup()
|
require('mini.trailspace').setup()
|
||||||
|
require('mini.visits').setup()
|
||||||
|
|
||||||
require('mini.cursorword').setup({
|
require('mini.cursorword').setup({
|
||||||
delay = 800
|
delay = 800
|
||||||
|
|
Loading…
Reference in a new issue