mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(neo-tree): add mapping "O" to open with system default (#2758)
* feat(neo-tree): add mapping "O" to open with system default * feat(neo-tree): add OS checks for system default open commands * Use `vim.ui.open` if exists * update OS checks * Just use vim.ui.open or throw error if doesn't exist * Make "O" undefined mapping if vim.ui.open isn't available * fix: use lazy's util.open instead --------- Co-authored-by: Uthman Mohamed <83053931+1239uth@users.noreply.github.com> Co-authored-by: saeedahsan <ahsan02@gmail.com> Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
7ab6285011
commit
b74ef23a27
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ return {
|
|||
end,
|
||||
desc = "copy path to clipboard",
|
||||
},
|
||||
["O"] = {
|
||||
function(state)
|
||||
require("lazy.util").open(state.tree:get_node().path, { system = true })
|
||||
end,
|
||||
desc = "open with system application",
|
||||
},
|
||||
},
|
||||
},
|
||||
default_component_configs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue