fix: fix vistual selection region mistakes

This commit is contained in:
JuanZoran
2023-02-02 12:01:23 +08:00
parent 225fa4f19e
commit 6737090710
4 changed files with 42 additions and 31 deletions

View File

@ -8,7 +8,7 @@ local path = require('Trans').conf.db_path
local dict = db:open(path)
vim.api.nvim_create_autocmd('VimLeavePre', {
group = require("Trans").augroup,
once = true,
callback = function()
if db:isopen() then
db:close()