-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch to neotree instead of mini.files
- Loading branch information
1 parent
a0cd592
commit f0a1efb
Showing
12 changed files
with
119 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,58 @@ | ||
---@type LazySpec | ||
return { | ||
{ | ||
'echasnovski/mini.pick', | ||
enabled = true, | ||
dependencies = { | ||
'echasnovski/mini.pick', | ||
enabled = false, | ||
dependencies = { | ||
{ | ||
'echasnovski/mini.extra', | ||
version = '*', | ||
config = function() | ||
require('mini.extra').setup() | ||
end, | ||
}, | ||
}, | ||
version = '*', | ||
keys = function() | ||
local pick = require 'mini.pick' | ||
|
||
return { | ||
{ '<leader>p', '', desc = '+pick' }, | ||
{ | ||
'echasnovski/mini.extra', | ||
version = '*', | ||
config = function() | ||
require('mini.extra').setup() | ||
'<leader>pb', | ||
function() | ||
pick.builtin.buffers({ include_current = false }) | ||
end, | ||
desc = '[B]uffer', | ||
}, | ||
}, | ||
version = '*', | ||
keys = function() | ||
local pick = require 'mini.pick' | ||
|
||
return { | ||
{ '<leader>p', '', desc = '+pick' }, | ||
{ | ||
'<leader>pb', | ||
function() | ||
pick.builtin.buffers({ include_current = false }) | ||
end, | ||
desc = '[B]uffer', | ||
}, | ||
{ '<leader>pf', pick.builtin.files, desc = '[F]ile' }, | ||
{ | ||
'<leader>pn', | ||
function() | ||
local opts = { source = { cwd = vim.fn.stdpath 'config' } } | ||
local local_opts = { cwd = nil, tool = 'fd' } | ||
pick.builtin.files(local_opts, opts) | ||
end, | ||
desc = '[N]eovim config', | ||
}, | ||
} | ||
end, | ||
config = function() | ||
require('mini.pick').setup({ | ||
mappings = { | ||
choose_in_split = '<C-x>', | ||
mark = '<C-m>', | ||
mark_all = '<C-a>', | ||
move_down = '<C-j>', | ||
move_start = '<C-g>', | ||
move_up = '<C-k>', | ||
}, | ||
-- General options | ||
options = { | ||
-- Whether to show content from bottom to top | ||
content_from_bottom = false, | ||
-- Whether to cache matches (more speed and memory on repeated prompts) | ||
use_cache = true, | ||
}, | ||
}) | ||
end, | ||
}, | ||
{ '<leader>pf', pick.builtin.files, desc = '[F]ile' }, | ||
{ | ||
'<leader>pn', | ||
function() | ||
local opts = { source = { cwd = vim.fn.stdpath 'config' } } | ||
local local_opts = { cwd = nil, tool = 'fd' } | ||
pick.builtin.files(local_opts, opts) | ||
end, | ||
desc = '[N]eovim config', | ||
}, | ||
} | ||
end, | ||
config = function() | ||
require('mini.pick').setup({ | ||
mappings = { | ||
choose_in_split = '<C-x>', | ||
mark = '<C-m>', | ||
mark_all = '<C-a>', | ||
move_down = '<C-j>', | ||
move_start = '<C-g>', | ||
move_up = '<C-k>', | ||
}, | ||
-- General options | ||
options = { | ||
-- Whether to show content from bottom to top | ||
content_from_bottom = false, | ||
-- Whether to cache matches (more speed and memory on repeated prompts) | ||
use_cache = true, | ||
}, | ||
}) | ||
end, | ||
} |
Oops, something went wrong.