mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Telekasten command with completion
This commit is contained in:
11
plugin/telekasten.vim
Normal file
11
plugin/telekasten.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
if exists('g:loaded_telekasten')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_telekasten = 1
|
||||
|
||||
function! s:telekasten_complete(arg,line,pos)
|
||||
let l:candidates = luaeval('require("telekasten").Command.complete()')
|
||||
return join(l:candidates, "\n")
|
||||
endfunction
|
||||
|
||||
command! -nargs=? -complete=custom,s:telekasten_complete Telekasten lua require('telekasten').panel(<f-args>)
|
||||
Reference in New Issue
Block a user