We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
system_open
vim.ui.open
1 parent 3690cc6 commit 2715dbfCopy full SHA for 2715dbf
lua/astrocore/init.lua
@@ -124,18 +124,6 @@ function M.exec_buffer_autocmds(event, opts)
124
end
125
126
127
---- Open a URL under the cursor with the current operating system
128
----@param path string The path of the file to open with the system opener
129
----@return vim.SystemObj? err any errors if encountered
130
-function M.system_open(path)
131
- if not path then
132
- path = vim.fn.expand "<cfile>"
133
- elseif not path:match "%w+:" then
134
- path = vim.fn.expand(path)
135
- end
136
- return vim.ui.open(path)
137
-end
138
-
139
--- Helper function to read a file and return it's content
140
---@param path string the path to the file to read
141
---@return string content the contents of the file
0 commit comments