Remove debug.vim from repository

This commit is contained in:
Marty Oehme 2021-05-20 14:20:41 +02:00
parent 20d8edb800
commit 0cf4516048
Signed by: Marty
GPG key ID: B7538B8F50A1C800
3 changed files with 1 additions and 21 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
public/
plugin/debug.vim

View file

@ -1,20 +0,0 @@
" TODO for DEBUGGING ONLY: reloads the whole lua plugin
fun! ZKReload()
lua for k in pairs(package.loaded) do if k:match("^zettelkasten") then package.loaded[k] = nil end end
lua require 'zettelkasten'
endfun
nnoremap <leader>R :call ZKReload()<cr>
augroup Zettelkasten
autocmd!
augroup END
command! ZKOpen lua require('zettelkasten').open_link()
command! -range ZKCreate lua require('zettelkasten').create_link()
" example plug mappings
" nnoremap <Plug>Zettel_Link :call zettelkasten#zettel_link()<cr>
map <leader>i <Plug>zettel_link_open
map <cr> <Plug>zettel_link_follow

View file

@ -1,4 +1,3 @@
" TODO remove after debugging
if exists('g:loaded_zettelkasten')
finish
endif