feat(vim): add lus support

This commit is contained in:
2021-03-13 23:28:55 +08:00
parent d085042032
commit 5547f8b910
3 changed files with 65 additions and 12 deletions
+10 -2
View File
@@ -1,10 +1,18 @@
func! myspacevim#before() abort
lua << EOF
local c = require('custom')
lcustom.init()
EOF
function! myspacevim#before() abort
set wrap
"设置折叠方式
set foldmethod=indent
" 打开文件默认不折叠
set foldlevelstart=99
let g:go_metalinter_autosave=0
let g:XkbSwitchEnabled = 1
"nnoremap <Space>k :<C-u>call gitblame#echo()<CR>
"大括号回车
"inoremap { {<CR>}<up><end><CR>
@@ -12,4 +20,4 @@ func! myspacevim#before() abort
"inoremap , ,<Space>
"等号左右空格
"inoremap = <Space>=<Space>
endf
endfunction