2019-12-06 19:33:20 +01:00
|
|
|
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
|
|
|
let &packpath = &runtimepath
|
|
|
|
source ~/.vimrc
|
2020-02-03 11:46:24 +01:00
|
|
|
|
|
|
|
if exists('g:started_by_firenvim')
|
|
|
|
set laststatus=0
|
|
|
|
set showtabline=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
let g:firenvim_config = {
|
|
|
|
\ 'globalSettings': {
|
|
|
|
\ 'alt': 'all',
|
|
|
|
\ },
|
|
|
|
\ 'localSettings': { }
|
|
|
|
\ }
|
|
|
|
|
2020-03-16 09:15:52 +01:00
|
|
|
function! s:IsFirenvimActive(event) abort
|
|
|
|
if !exists('*nvim_get_chan_info')
|
|
|
|
return 0
|
|
|
|
endif
|
|
|
|
let l:ui = nvim_get_chan_info(a:event.chan)
|
|
|
|
return has_key(l:ui, 'client') && has_key(l:ui.client, "name") &&
|
|
|
|
\ l:ui.client.name is# "Firenvim"
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! OnUIEnter(event) abort
|
|
|
|
if s:IsFirenvimActive(a:event)
|
|
|
|
set laststatus=0
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
autocmd UIEnter * call OnUIEnter(deepcopy(v:event))
|
|
|
|
|
2020-02-03 11:46:24 +01:00
|
|
|
let fc = g:firenvim_config['localSettings']
|
|
|
|
let fc['https://share\.waarp\.org/'] = { 'takeover': 'never', 'priority': 1 }
|