diff --git a/vim/plugin/notesium.vim b/vim/plugin/notesium.vim index 1288c1e..6c7b8f0 100644 --- a/vim/plugin/notesium.vim +++ b/vim/plugin/notesium.vim @@ -64,8 +64,10 @@ if has('nvim') \ 'height': l:height } " Create buffer and floating window + " Set filetype=fzf to avoid vim-tmux-navigator intercepting / 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 @@ -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