Skip to content

Commit

Permalink
fix: add buffer filetype for filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
sphamba committed Dec 5, 2024
1 parent 5c6adfa commit 48c0914
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/smear_cursor/draw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ local function get_window(tab, row, col)

local ei = vim.o.ei -- eventignore
vim.o.ei = "all" -- ignore all events
set_buffer_options(buffer_id, { buftype = "nofile", bufhidden = "wipe", swapfile = false })
set_buffer_options(
buffer_id,
{ buftype = "nofile", filetype = "smear-cursor", bufhidden = "wipe", swapfile = false }
)
set_window_options(window_id, { winhighlight = "NormalFloat:Normal", winblend = 100 })
vim.o.ei = ei
tab_windows.windows[tab_windows.active] = { window_id = window_id, buffer_id = buffer_id }
Expand Down

0 comments on commit 48c0914

Please sign in to comment.