Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cht committed Feb 16, 2022
1 parent 84b813c commit a6656bd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/csvtools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local M = {
before = 20,
after = 20,
clearafter = true,
showoverflow = true,
showoverflow = true,
overflowtext = {
markid = nil,
ns_id = nil,
Expand Down Expand Up @@ -82,9 +82,9 @@ function M.Highlight()
local start, final = getrange(line, length)
--print(start)
--print(final)
if M.showoverflow then
M.overflowtext = overflow.OverFlow(line, M.header)
end
if M.showoverflow then
M.overflowtext = overflow.OverFlow(line, M.header)
end
for i = start, line, 1 do
highlight.highlight(M.mainwindowbuf, i)
end
Expand All @@ -94,9 +94,9 @@ function M.Highlight()
end
end
function M.deleteMark()
if M.showoverflow then
vim.api.nvim_buf_del_extmark(M.overflowtext.markid, M.overflowtext.ns_id, M.overflowtext.id)
end
if M.showoverflow then
vim.api.nvim_buf_del_extmark(M.overflowtext.markid, M.overflowtext.ns_id, M.overflowtext.id)
end
end
function M.add_mappings()
M.mainwindowbuf = vim.api.nvim_get_current_buf()
Expand Down

0 comments on commit a6656bd

Please sign in to comment.