aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorLuca Saccarola <96259932+saccarosium@users.noreply.github.com>2025-03-01 00:14:01 +0100
committerGitHub <noreply@github.com>2025-02-28 23:14:01 +0000
commit7b4295390f951d902ebc34012729e92904d4c1ee (patch)
tree32be673efb190598ed4ad09382f05abc407bca37 /runtime
parent86046c5a31034af65f128626103526269cf1bc49 (diff)
downloadrneovim-7b4295390f951d902ebc34012729e92904d4c1ee.tar.gz
rneovim-7b4295390f951d902ebc34012729e92904d4c1ee.tar.bz2
rneovim-7b4295390f951d902ebc34012729e92904d4c1ee.zip
docs(Open): add reference in documentation (#32678)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/lua.txt2
-rw-r--r--runtime/lua/vim/ui.lua2
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 300d809854..e8543b5ece 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -2638,6 +2638,8 @@ vim.ui.open({path}, {opt}) *vim.ui.open()*
`explorer.exe`, Linux `xdg-open`, …), or returns (but does not show) an
error message on failure.
+ Can also be invoked with `:Open`. *:Open*
+
Expands "~/" and environment variables in filesystem paths.
Examples: >lua
diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua
index cd159f0172..ae6138770a 100644
--- a/runtime/lua/vim/ui.lua
+++ b/runtime/lua/vim/ui.lua
@@ -108,6 +108,8 @@ end
--- Opens `path` with the system default handler (macOS `open`, Windows `explorer.exe`, Linux
--- `xdg-open`, …), or returns (but does not show) an error message on failure.
---
+--- Can also be invoked with `:Open`. [:Open]()
+---
--- Expands "~/" and environment variables in filesystem paths.
---
--- Examples: