diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-06 15:54:24 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-06 15:54:24 +0100 |
commit | 99ae247eacf35697c607d880675d910fcce90ae3 (patch) | |
tree | c54bd8b42a56c7ad94ff138c69fd85005b02f4ae /.config/nvim/plugins/aerial.vim | |
parent | d9f12831186077736fcd9c163a4b31a1fa28690e (diff) |
[nvim] refactor plugins to use lazy.nvim
Diffstat (limited to '.config/nvim/plugins/aerial.vim')
-rw-r--r-- | .config/nvim/plugins/aerial.vim | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/.config/nvim/plugins/aerial.vim b/.config/nvim/plugins/aerial.vim deleted file mode 100644 index 9a6db49..0000000 --- a/.config/nvim/plugins/aerial.vim +++ /dev/null @@ -1,28 +0,0 @@ -lua <<EOF -require('aerial').setup({ - filter_kind = false, -}) - -require('telescope').load_extension('aerial') -EOF - -nnoremap <leader>a <cmd>AerialToggle!<CR> -nnoremap <leader>fa <cmd>Telescope aerial<CR> - -" add aerial to tab switch filetypes -call add(g:NERDTreeStatusLineTabSwitchFiletypes, 'aerial') - -" close Aerial and NERDTree if they are the only remaining windows -function AerialNERDTreeClose() - if winnr('$') != 2 - return - endif - - let window_filetypes = UtilityWinfiletypes() - - if index(window_filetypes, 'aerial') != -1 && index(window_filetypes, 'nerdtree') != -1 - " one quit suffices, since aerial and nerdtree close themselves - quit - endif -endfunction -autocmd BufEnter * call AerialNERDTreeClose() |