mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-29 20:14:36 +02:00
feat: use ctrl-r
to toggle between rootdir/cwd
This commit is contained in:
parent
9f98b0a01e
commit
dd5a5fb4cd
1 changed files with 2 additions and 1 deletions
|
@ -42,13 +42,14 @@ return {
|
|||
config.defaults.actions.files["ctrl-t"] = require("trouble.sources.fzf").actions.open
|
||||
|
||||
-- Toggle root dir / cwd
|
||||
config.defaults.actions.files["alt-c"] = function(_, ctx)
|
||||
config.defaults.actions.files["ctrl-r"] = function(_, ctx)
|
||||
local o = vim.deepcopy(ctx.__call_opts)
|
||||
o.root = o.root == false
|
||||
o.cwd = nil
|
||||
o.buf = ctx.__CTX.bufnr
|
||||
LazyVim.pick.open(ctx.__INFO.cmd, o)
|
||||
end
|
||||
config.defaults.actions.files["alt-c"] = config.defaults.actions.files["ctrl-r"]
|
||||
|
||||
return {
|
||||
[1] = "default-title",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue