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

fix(tasks): use vim.tbl_extend instead

This commit is contained in:
wsdjeg 2023-08-09 04:02:21 +08:00
parent a1a3b5b817
commit 87d8ad1fd9
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ local function load()
local_conf = toml.parse_file(vim.fn.expand('.SpaceVim.d/tasks.toml')) local_conf = toml.parse_file(vim.fn.expand('.SpaceVim.d/tasks.toml'))
log.debug('found local conf:\n' .. vim.inspect(local_conf)) log.debug('found local conf:\n' .. vim.inspect(local_conf))
end end
task_config = vim.fn.extend(global_conf, local_conf) task_config = vim.tbl_extend('force', global_conf, local_conf)
end end
local function init_variables() local function init_variables()

View File

@ -1,4 +1,4 @@
Execute ( SpaceVim plugin: code runner ): Execute ( SpaceVim plugin: task manager ):
call SpaceVim#plugins#tasks#list() call SpaceVim#plugins#tasks#list()
exe "normal! /regexp\<cr>" exe "normal! /regexp\<cr>"
exe "normal \<cr>" exe "normal \<cr>"