dotfiles/.vim/bundle/vim-nerdtree/lib/nerdtree/event.vim

14 lines
383 B
VimL
Raw Normal View History

2023-08-19 13:25:19 +02:00
"CLASS: Event
"============================================================
let s:Event = {}
let g:NERDTreeEvent = s:Event
function! s:Event.New(nerdtree, subject, action, params) abort
let newObj = copy(self)
let newObj.nerdtree = a:nerdtree
let newObj.subject = a:subject
let newObj.action = a:action
let newObj.params = a:params
return newObj
endfunction