mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
[neovim] Set bufhidden and nobuflisted after opening terminal
This commit is contained in:
@@ -317,7 +317,7 @@ function! s:split(dict)
|
|||||||
endif
|
endif
|
||||||
return { '&l:wfw': &l:wfw, '&l:wfh': &l:wfh }
|
return { '&l:wfw': &l:wfw, '&l:wfh': &l:wfh }
|
||||||
finally
|
finally
|
||||||
setlocal winfixwidth winfixheight buftype=nofile bufhidden=wipe nobuflisted
|
setlocal winfixwidth winfixheight
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -368,7 +368,7 @@ function! s:execute_term(dict, command, temps) abort
|
|||||||
call s:pushd(a:dict)
|
call s:pushd(a:dict)
|
||||||
call termopen(a:command, fzf)
|
call termopen(a:command, fzf)
|
||||||
call s:popd(a:dict, [])
|
call s:popd(a:dict, [])
|
||||||
setlocal nospell
|
setlocal nospell bufhidden=wipe nobuflisted
|
||||||
setf fzf
|
setf fzf
|
||||||
startinsert
|
startinsert
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user