Skip to content

Commit

Permalink
fixes installing fire nvim on brave
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ryall authored and glacambre committed Nov 11, 2020
1 parent 207931b commit c1dfa26
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion autoload/firenvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,15 @@ function! s:get_chrome_manifest_dir_path() abort
return s:build_path([$HOME, '.config', 'google-chrome', 'NativeMessagingHosts'])
endfunction

function! s:get_brave_manifest_dir_path() abort
if has('mac')
return s:get_chrome_manifest_dir_path()
elseif has('win32')
return s:get_chrome_manifest_dir_path()
end
return s:build_path([$HOME, '.config', 'BraveSoftware', 'Brave-Browser', 'NativeMessagingHosts'])
endfunction

function! s:canary_config_exists() abort
if has('mac')
let l:p = [$HOME, 'Library', 'Application Support', 'Google', 'Chrome Canary']
Expand Down Expand Up @@ -382,7 +391,7 @@ function! s:get_browser_configuration() abort
\'brave': {
\ 'has_config': s:brave_config_exists(),
\ 'manifest_content': function('s:get_chrome_manifest'),
\ 'manifest_dir_path': function('s:get_chrome_manifest_dir_path'),
\ 'manifest_dir_path': function('s:get_brave_manifest_dir_path'),
\ 'registry_key': 'HKCU:\Software\Google\Chrome\NativeMessagingHosts\firenvim',
\},
\'chrome': {
Expand Down

0 comments on commit c1dfa26

Please sign in to comment.