1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:50:03 +08:00

fix(lang#lua): fix unknown variable

close https://github.com/SpaceVim/SpaceVim/issues/4495
This commit is contained in:
Shidong Wang 2021-10-16 10:52:55 +08:00
parent 1f2ce0e686
commit 4e0f352961
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -69,6 +69,7 @@ let s:lua_file_head = [
\ '--!/usr/bin/lua', \ '--!/usr/bin/lua',
\ '' \ ''
\ ] \ ]
let s:format_on_save = 0
function! SpaceVim#layers#lang#lua#plugins() abort function! SpaceVim#layers#lang#lua#plugins() abort
let plugins = [] let plugins = []
@ -123,7 +124,7 @@ endfunction
function! SpaceVim#layers#lang#lua#set_variable(opt) abort function! SpaceVim#layers#lang#lua#set_variable(opt) abort
let s:lua_repl_command = get(a:opt, 'repl_command', '') let s:lua_repl_command = get(a:opt, 'repl_command', '')
let s:lua_foldmethod = get(a:opt, 'foldmethod', 'manual') let s:lua_foldmethod = get(a:opt, 'foldmethod', 'manual')
let s:format_on_save = get(a:var, 'format_on_save', s:format_on_save) let s:format_on_save = get(a:opt, 'format_on_save', s:format_on_save)
endfunction endfunction
" Add language specific mappings " Add language specific mappings