From 3c5c23ba91e608bd89bb36d76cb005aa63d20dbf Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 14 Nov 2025 15:07:03 +0100 Subject: [PATCH] fix(scratch): set filetype correctly. Closes #2510 --- lua/snacks/scratch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/snacks/scratch.lua b/lua/snacks/scratch.lua index 01e5812b..3e4e5946 100644 --- a/lua/snacks/scratch.lua +++ b/lua/snacks/scratch.lua @@ -170,7 +170,7 @@ function M.open(opts) opts.win = Snacks.win.resolve("scratch", opts.win_by_ft[scratch.ft], opts.win, { show = false, - { bo = { filetype = scratch.ft } }, + bo = { filetype = scratch.ft }, }) opts.win.title = {