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:
parent
1f2ce0e686
commit
4e0f352961
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user