Skip to content

Commit

Permalink
firenvim.vim: check for more edge install paths on OSX
Browse files Browse the repository at this point in the history
Oddly enough, edge on OSX has already been reported as working in #560,
but for some reason #1651 reports a different installation path. Check
for both.

Closes #1651.
  • Loading branch information
glacambre committed Dec 15, 2024
1 parent 64f9389 commit 97b6d1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/firenvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ function! s:edge_config_exists() abort
let l:p = [$HOME, '.config', 'microsoft-edge']
if has('mac')
let l:p = [$HOME, 'Library', 'Application Support', 'Microsoft', 'Edge']
if !isdirectory(s:build_path(l:p))
let l:p = [$HOME, 'Library', 'Application Support', 'Microsoft Edge']
endif
elseif has('win32')
let l:p = [$HOME, 'AppData', 'Local', 'Microsoft', 'Edge']
elseif s:is_wsl
Expand Down Expand Up @@ -492,7 +495,11 @@ endfunction

function! s:get_edge_manifest_dir_path() abort
if has('mac')
return s:build_path([$HOME, 'Library', 'Application Support', 'Microsoft', 'Edge', 'NativeMessagingHosts'])
let l:p = [$HOME, 'Library', 'Application Support', 'Microsoft', 'Edge']
if !isdirectory(s:build_path(l:p))
let l:p = [$HOME, 'Library', 'Application Support', 'Microsoft Edge']
endif
return s:build_path([l:p, 'NativeMessagingHosts'])
elseif has('win32') || s:is_wsl
return s:get_data_dir_path()
end
Expand Down

0 comments on commit 97b6d1f

Please sign in to comment.