fix: small improvements
This commit is contained in:
+11
-2
@@ -12,7 +12,16 @@ Config.now(function()
|
||||
return vim.iter({ vim.fn.glob('~/Code/*', 0, 1), vim.fn.glob('~/Documents/*/*', 0, 1) })
|
||||
:flatten()
|
||||
:filter(function(p) return vim.fn.isdirectory(p) == 1 end)
|
||||
:map(function(p) return { name = vim.fn.fnamemodify(p, ':t'), action = 'edit ' .. vim.fn.fnameescape(p), section = 'Projects' } end)
|
||||
:map(function(p)
|
||||
return {
|
||||
name = vim.fn.fnamemodify(p, ':t'),
|
||||
action = function()
|
||||
vim.fn.chdir(p)
|
||||
require('mini.files').open(p)
|
||||
end,
|
||||
section = 'Projects',
|
||||
}
|
||||
end)
|
||||
:totable()
|
||||
end,
|
||||
|
||||
@@ -47,7 +56,7 @@ Config.later(function()
|
||||
{ mode = { 'n', 'x' }, keys = 'g' },
|
||||
{ mode = { 'n', 'x' }, keys = "'" },
|
||||
{ mode = { 'n', 'x' }, keys = '`' },
|
||||
{ mode = { 'n', 'x' }, keys = "'" },
|
||||
{ mode = { 'n', 'x' }, keys = '"' },
|
||||
{ mode = { 'i', 'c' }, keys = '<C-r>' },
|
||||
{ mode = 'n', keys = '<C-w>' },
|
||||
{ mode = { 'n', 'x' }, keys = 's' },
|
||||
|
||||
Reference in New Issue
Block a user