~glacambre/firenvim

076c1a4f04db2173afb395d0af8c63a5bbcab6a8 — Brian Ryall 2 months ago 207931b
fixes installing fire nvim on brave
1 files changed, 10 insertions(+), 1 deletions(-)

M autoload/firenvim.vim
M autoload/firenvim.vim => autoload/firenvim.vim +10 -1
@@ 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']


@@ 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': {