mirror of
https://github.com/rizzatti/dash.vim.git
synced 2026-03-03 18:24:03 +01:00
Remove dependency on the cache
This commit is contained in:
@@ -38,8 +38,6 @@ function! s:check_for_dash()
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
let s:cache = dash#cache#class.new()
|
||||
|
||||
let s:aliases = dash#defaults#module.aliases
|
||||
|
||||
let s:groups = dash#defaults#module.groups
|
||||
@@ -67,7 +65,7 @@ endfunction
|
||||
"}}}
|
||||
|
||||
function! dash#complete(arglead, cmdline, cursorpos) "{{{
|
||||
return filter(copy(s:cache.keywords()), 'match(v:val, a:arglead) == 0')
|
||||
return []
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
" Description: Search Dash.app from Vim
|
||||
" Author: José Otávio Rizzatti <zehrizzatti@gmail.com>
|
||||
" License: MIT
|
||||
|
||||
let s:class = funcoo#object#class.extend()
|
||||
let s:proto = {}
|
||||
|
||||
function! s:proto.constructor() dict abort "{{{
|
||||
let self._keywords = []
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
function! s:proto.keywords() dict abort "{{{
|
||||
return self._keywords
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
call s:class.include(s:proto)
|
||||
|
||||
let dash#cache#class = s:class
|
||||
Reference in New Issue
Block a user