-
-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Description
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
HI ,i set split:floating,then i cant close floatwindow by esc.
Expected
close floatwindow by esc.
Environment Information (Required!)
-
denite version (SHA1): latest version
-
OS: macos 10.13.6
-
Vim/neovim version: neovim-0.4.0-dev
-
:checkhealthor:CheckHealthresult(neovim only):
health#denite#check
========================================================================
## denite.nvim
- OK: has("python3") was successful
- OK: Python3.6.1+ was successful
Provide a minimal init.vim with less than 50 lines (Required!)
set runtimepath+=~/path/to/denite.nvim/
call denite#custom#option('default', {
\ 'prompt': '❯❯❯:',
\ 'statusline': v:false,
\ 'highlight_matched_char': 'Underlined',
\ 'cursor_shape': v:true,
\ 'cursor_wrap': v:true,
\ 'split': 'floating',
\ })
function! s:denite_detect_size() abort
let s:denite_winheight = 20
let s:denite_winrow = &lines > s:denite_winheight ? (&lines - s:denite_winheight) / 2 : 0
let s:denite_winwidth = &columns > 240 ? &columns / 2 : 120
let s:denite_wincol = &columns > s:denite_winwidth ? (&columns - s:denite_winwidth) / 2 : 0
call denite#custom#option('_', {
\ 'wincol': s:denite_wincol,
\ 'winheight': s:denite_winheight,
\ 'winrow': s:denite_winrow,
\ 'winwidth': s:denite_winwidth,
\ })
endfunction
call denite#custom#option('list', {})
call denite#custom#option('mpc', { 'mode': 'normal', 'winheight': 20 })
" MATCHERS
" Default is 'matcher/fuzzy'
call denite#custom#source('tag', 'matchers', ['matcher/substring'])
" call denite#custom#source('file/rec', 'matchers', ['matcher/fruzzy'])
if has('nvim') && &runtimepath =~# '\/cpsm'
call denite#custom#source(
\ 'buffer,file_mru,file_old,file/rec,grep,mpc,line,neoyank',
\ 'matchers', ['matcher/cpsm', 'matcher/fuzzy'])
endif
" SORTERS
" Default is 'sorter/rank'
call denite#custom#source('z', 'sorters', ['sorter_z'])
" CONVERTERS
" Default is none
call denite#custom#source(
\ 'buffer,file_mru,file_old',
\ 'converters', ['converter_relative_word'])
" FIND and GREP COMMANDS
if executable('ag')
" The Silver Searcher
call denite#custom#var('file/rec', 'command',
\ ['ag', '-U', '--hidden', '--follow', '--nocolor', '--nogroup', '-g', ''])
" Setup ignore patterns in your .agignore file!
" https://github.com/ggreer/the_silver_searcher/wiki/Advanced-Usage
call denite#custom#var('grep', 'command', ['ag'])
call denite#custom#var('grep', 'recursive_opts', [])
call denite#custom#var('grep', 'pattern_opt', [])
call denite#custom#var('grep', 'separator', ['--'])
call denite#custom#var('grep', 'final_opts', [])
call denite#custom#var('grep', 'default_opts',
\ [ '--skip-vcs-ignores', '--vimgrep', '--smart-case', '--hidden' ])
elseif executable('ack')
" Ack command
call denite#custom#var('grep', 'command', ['ack'])
call denite#custom#var('grep', 'recursive_opts', [])
call denite#custom#var('grep', 'pattern_opt', ['--match'])
call denite#custom#var('grep', 'separator', ['--'])
call denite#custom#var('grep', 'final_opts', [])
call denite#custom#var('grep', 'default_opts',
\ ['--ackrc', $HOME.'/.config/ackrc', '-H',
\ '--nopager', '--nocolor', '--nogroup', '--column'])
elseif executable('rg')
" Ripgrep
call denite#custom#var('file/rec', 'command',
\ ['rg', '--files', '--glob', '!.git'])
call denite#custom#var('grep', 'command', ['rg', '--threads', '1'])
call denite#custom#var('grep', 'recursive_opts', [])
call denite#custom#var('grep', 'final_opts', [])
call denite#custom#var('grep', 'separator', ['--'])
call denite#custom#var('grep', 'default_opts',
\ ['-i', '--vimgrep', '--no-heading'])
endif
" KEY MAPPINGS
let insert_mode_mappings = [
\ ['jj', '<denite:enter_mode:normal>', 'noremap'],
\ ['<esc>', '<denite:enter_mode:normal>', 'noremap'],
\ ['<C-N>', '<denite:assign_next_matched_text>', 'noremap'],
\ ['<C-P>', '<denite:assign_previous_matched_text>', 'noremap'],
\ ['<Up>', '<denite:assign_previous_text>', 'noremap'],
\ ['<Down>', '<denite:assign_next_text>', 'noremap'],
\ ['<C-Y>', '<denite:redraw>', 'noremap'],
\ ['<BS>', '<denite:smart_delete_char_before_caret>', 'noremap'],
\ ['<C-h>', '<denite:smart_delete_char_before_caret>', 'noremap'],
\ ]
let normal_mode_mappings = [
\ ["'", '<denite:toggle_select_down>', 'noremap'],
\ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
\ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
\ ['gg', '<denite:move_to_first_line>', 'noremap'],
\ ['st', '<denite:do_action:tabopen>', 'noremap'],
\ ['sg', '<denite:do_action:vsplit>', 'noremap'],
\ ['sv', '<denite:do_action:split>', 'noremap'],
\ ['<esc>', '<denite:quit>', 'noremap'],
\ ['r', '<denite:redraw>', 'noremap'],
\ ]
for m in insert_mode_mappings
call denite#custom#map('insert', m[0], m[1], m[2])
endfor
for m in normal_mode_mappings
call denite#custom#map('normal', m[0], m[1], m[2])
endfor
" vim: set ts=2 sw=2 tw=80 noet :
How to reproduce problems from neovim startup (Required!)
- set
split:floating - close floatwindow
Generate a logfile if appropriate
N/A
Screenshot (if possible)
Upload the log file
N/A
Metadata
Metadata
Assignees
Labels
No labels
