aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-08-22 22:30:55 +0300
committereug-vs <eugene@eug-vs.xyz>2021-08-22 22:30:55 +0300
commit2a958b4d0b48c2051956a9bf22d105064d8d8b36 (patch)
tree1228168fd1be39590f23bb8558059d4db6514856 /nvim/.config
parent35d090aa7c1b319dbc2b622d8bc211cb2765ff33 (diff)
downloaddotfiles-2a958b4d0b48c2051956a9bf22d105064d8d8b36.tar.gz
feat(nvim)!: remove Defx config
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/defx.vim37
1 files changed, 0 insertions, 37 deletions
diff --git a/nvim/.config/nvim/defx.vim b/nvim/.config/nvim/defx.vim
deleted file mode 100644
index 8b44dfc..0000000
--- a/nvim/.config/nvim/defx.vim
+++ /dev/null
@@ -1,37 +0,0 @@
-" Defx configuration
-nnoremap <silent> <F3> :Defx<CR>
-autocmd FileType defx call s:defx_my_settings()
-autocmd BufEnter * if(winnr("$") == 1 && &ft == 'defx') | q | endif
-autocmd BufWritePost * call defx#redraw()
-
-function! SmartTabEdit(context) abort
- tabnew
- execute "e " . a:context.targets[0]
- tabp
-endfunction
-
-function! s:defx_my_settings() abort
- set nonumber norelativenumber
-
- nnoremap <buffer><expr> l
- \ defx#is_directory() ?
- \ defx#do_action('open_tree') :
- \ defx#do_action('open', 'choose')
- nnoremap <silent><buffer><expr> t defx#do_action('call', 'SmartTabEdit')
- nnoremap <silent><buffer><expr> h defx#do_action('close_tree')
- nnoremap <silent><buffer><expr> dd defx#do_action('remove')
- nnoremap <silent><buffer><expr> cw defx#do_action('rename')
- nnoremap <silent><buffer><expr> o defx#do_action('new_file')
- nnoremap <silent><buffer><expr> q defx#do_action('quit')
-endfunction
-
-call defx#custom#option('_', {
-\ 'toggle': 1,
-\ 'resume': 1,
-\ 'show_ignored_files': 1,
-\ 'buffer_name': 'explorer',
-\ 'split': 'vertical',
-\ 'direction': 'topleft',
-\ 'columns': 'space:indent:git:icons:space:filename:mark',
-\ 'winwidth': 30,
-\ })