Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion vim/plugin/notesium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ if has('nvim')
\ 'height': l:height }

" Create buffer and floating window
" Set filetype=fzf to avoid vim-tmux-navigator intercepting <C-j>/<C-k>
highlight link NormalFloat Normal
let l:buf = nvim_create_buf(v:false, v:true)
call nvim_buf_set_option(l:buf, 'filetype', 'fzf')
let l:win = nvim_open_win(l:buf, v:true, l:opts)

" Set context and start the finder
Expand All @@ -74,7 +76,7 @@ if has('nvim')

" Focus the terminal and switch to insert mode
call nvim_set_current_win(l:win)
call feedkeys('i', 'n')
call nvim_command('startinsert')
endfunction

function! notesium#finder_on_exit(job_id, exit_code, _signal) abort
Expand Down