mirror of
https://github.com/Myzel394/easytables.nvim.git
synced 2025-06-18 14:55:26 +02:00
fix: Fix insertion
This commit is contained in:
parent
f5a9a3cdcf
commit
34012f9096
@ -320,17 +320,22 @@ function M:register_listeners()
|
||||
function()
|
||||
local markdown_table = export:export_table(self.table)
|
||||
|
||||
self:close()
|
||||
vim.schedule(function()
|
||||
vim.cmd("bprevious")
|
||||
|
||||
vim.schedule(function()
|
||||
local cursor = vim.api.nvim_win_get_cursor(0)
|
||||
|
||||
vim.api.nvim_buf_set_text(
|
||||
self.previous_buffer,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
cursor[1] - 1,
|
||||
cursor[2],
|
||||
cursor[1] - 1,
|
||||
cursor[2],
|
||||
markdown_table
|
||||
)
|
||||
end)
|
||||
end)
|
||||
end,
|
||||
{}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user