mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
feat(edit): use lua plugin for nvim 0.7
This commit is contained in:
parent
63948825b7
commit
e7cb486364
@ -153,7 +153,12 @@ function! SpaceVim#layers#edit#config() abort
|
||||
\ 'backupdir' : s:autosave_location,
|
||||
\ 'event' : s:autosave_events,
|
||||
\ }
|
||||
call SpaceVim#plugins#autosave#config(autosave_opt)
|
||||
|
||||
if has('nvim-0.7.0')
|
||||
lua require('spacevim.plugin.autosave').config(vim.api.nvim_eval('autosave_opt'))
|
||||
else
|
||||
call SpaceVim#plugins#autosave#config(autosave_opt)
|
||||
endif
|
||||
|
||||
|
||||
let g:multi_cursor_next_key=get(g:, 'multi_cursor_next_key', '<C-n>')
|
||||
|
Loading…
x
Reference in New Issue
Block a user