-
Notifications
You must be signed in to change notification settings - Fork 1
/
luacomplete.txt
39 lines (30 loc) · 1.63 KB
/
luacomplete.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
*luacomplete.txt* lua complete plugin for vim
SpaceVim *luacomplete*
==============================================================================
CONTENTS *luacomplete-contents*
1. Introduction..........................................|luacomplete-intro|
2. Configuration........................................|luacomplete-config|
3. Functions.........................................|luacomplete-functions|
==============================================================================
INTRODUCTION *luacomplete-intro*
This ia a basic completion plugin for lua file.
==============================================================================
CONFIGURATION *luacomplete-config*
*g:luacompleteEnableDefaultMappings*
Diable/Enable default mappings in lua buffer.
>
mode key functinon
normal <leader>fl print functin list
normal <leader>lf wirte and luafile
normal <leader>sli set lua iabbrevs
normal <leader>cli clear lua iabbrevs
<
==============================================================================
FUNCTIONS *luacomplete-functions*
luacomplete#complete({findstart}, {base}) *luacomplete#complete()*
this function is the omnifunc for lua file. to enable lua complete, add this
to you vimrc.
>
autocmd FileType lua setlocal omnifunc=luacomplete#complete
<
vim:tw=78:ts=8:ft=help:norl: