style: remove nest

This commit is contained in:
JuanZoran
2023-02-04 15:03:02 +08:00
parent 6f75ba057b
commit 1205b11d97
9 changed files with 450 additions and 376 deletions

View File

@@ -19,9 +19,7 @@ vim.api.nvim_create_autocmd('VimLeavePre', {
return function(word)
local res = (dict:select('stardict', {
where = {
word = word,
},
where = { word = word, },
keys = {
'word',
'phonetic',
@@ -43,10 +41,6 @@ return function(word)
collins = res.collins,
phonetic = res.phonetic,
}
res.word = nil
res.oxford = nil
res.collins = nil
res.phonetic = nil
end
return res