Skip to content

Commit 2715dbf

Browse files
committed
refactor!: remove system_open function as one should use vim.ui.open
1 parent 3690cc6 commit 2715dbf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lua/astrocore/init.lua

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,6 @@ function M.exec_buffer_autocmds(event, opts)
124124
end
125125
end
126126

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-
139127
--- Helper function to read a file and return it's content
140128
---@param path string the path to the file to read
141129
---@return string content the contents of the file

0 commit comments

Comments
 (0)