Skip to content

Commit

Permalink
Shrink denite's floating window width
Browse files Browse the repository at this point in the history
  • Loading branch information
rafi committed Dec 25, 2019
1 parent 56df7b7 commit fc3e398
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion config/plugins/defx.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ call defx#custom#option('_', {
\ '.mypy_cache,.pytest_cache,.git,.hg,.svn,.stversions'
\ . ',__pycache__,.sass-cache,*.egg-info,.DS_Store,*.pyc'
\ })
"\ 'listed': 1,

call defx#custom#column('git', {
\ 'indicators': {
Expand Down
2 changes: 1 addition & 1 deletion config/plugins/denite.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif
function! s:denite_resize(position)
if a:position ==# 'top'
call denite#custom#option('_', {
\ 'winwidth': (&columns / 2) - 1,
\ 'winwidth': (&columns - (&columns / 3)) - 1,
\ 'winheight': &lines / 3,
\ 'wincol': 0,
\ 'winrow': 1,
Expand Down
13 changes: 7 additions & 6 deletions config/plugins/deoplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ call deoplete#custom#var('omni', 'functions', {
\ })

call deoplete#custom#option('omni_patterns', {
\ 'go': '[^. *\t]\.\w*',
\ 'go': '[^. *\t]\.\w*',
\})

" }}}
Expand Down Expand Up @@ -157,16 +157,17 @@ function s:smart_carriage_return()
return "\<CR>"
endfunction

" <Tab> completion:
" 1. If popup menu is visible, select and insert next item
" 2. Otherwise, if within a snippet, jump to next input
" 3. Otherwise, if preceding chars are whitespace, insert tab char
" 4. Otherwise, open completion pop-up
" Open and scroll through completion-menu with <Tab> and <C-Space>
imap <silent><expr><Tab> <SID>smart_complete()
smap <silent><expr><Tab> <SID>smart_complete()
imap <silent><expr><C-Space> <SID>smart_complete()
smap <silent><expr><C-Space> <SID>smart_complete()
" Smart completion:
" 1. If popup menu is visible, select next item
" 2. Otherwise, if within a snippet, jump to next placeholder
" 3. Otherwise, if preceding chars are whitespace, insert tab char
" 4. Otherwise, open completion pop-up
function! s:smart_complete()
return pumvisible() ? "\<Down>"
\ : (neosnippet#jumpable() ? "\<Plug>(neosnippet_jump)"
Expand Down
2 changes: 1 addition & 1 deletion filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ augroup filetypedetect "{{{
autocmd BufNewFile,BufRead .watchmanconfig setfiletype json
autocmd BufNewFile,BufRead .buckconfig setfiletype toml
autocmd BufNewFile,BufRead .flowconfig setfiletype ini
autocmd BufNewFile,BufRead Jenkinsfile setfiletype groovy
autocmd BufNewFile,BufRead Jenkinsfile* setfiletype groovy
autocmd BufNewFile,BufRead Tmuxfile,tmux/config setfiletype tmux
autocmd BufNewFile,BufRead Brewfile setfiletype ruby

Expand Down
2 changes: 1 addition & 1 deletion plugin/browser.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let s:hg_exec = get(g:, 'hg_exec', 'hg')

function! s:open_scm(line1, line2, ...)
" Open SCM repository with fine detail: Branch, file, line
let l:path = expand(empty(a:1) ? '%' : a:1)
let l:path = expand(empty(a:1) ? '%:~:.' : a:1)
let l:dir = isdirectory(l:path) ? l:path : fnamemodify(l:path, ':h')
let l:scm_name = s:detect_scm(l:dir)
if empty(l:scm_name)
Expand Down

0 comments on commit fc3e398

Please sign in to comment.