aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/autoload/coc/source/khard.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/autoload/coc/source/khard.vim')
-rw-r--r--.config/nvim/autoload/coc/source/khard.vim28
1 files changed, 0 insertions, 28 deletions
diff --git a/.config/nvim/autoload/coc/source/khard.vim b/.config/nvim/autoload/coc/source/khard.vim
deleted file mode 100644
index 63dd8bd..0000000
--- a/.config/nvim/autoload/coc/source/khard.vim
+++ /dev/null
@@ -1,28 +0,0 @@
-" global contacts list
-let s:contacts = []
-
-function! coc#source#khard#init() abort
- " read contacts once on init
- for line in systemlist('khard email --remove-first-line --parsable')
- let [address, name, type] = split(line, "\t")
- call add(s:contacts, printf('%s <%s>', name, address))
- endfor
-
- " plugin config
- return {
- \ 'priority': 9,
- \ 'shortcut': 'khard',
- \ 'filetypes': ['mail'],
- \}
-endfunction
-
-function coc#source#khard#should_complete(option)
- " only complete addresses on to, cc, bcc and reply-to header lines
- return tolower(a:option['line']) =~ '^\(to\|cc\|bcc\|reply-to\):'
-endfunction
-
-function! coc#source#khard#complete(option, cb) abort
- " init already loaded all the contacts, just forward them to CoC
- call a:cb(s:contacts)
-endfunction
-