From 80cd7a53fa4198817b55b018ea8dd10358584d5d Mon Sep 17 00:00:00 2001 From: Mike Smith <10135646+mikesmithgh@users.noreply.github.com> Date: Sun, 26 Nov 2023 20:18:20 -0500 Subject: [PATCH] chore: set filetype kitty-scrollback --- lua/kitty-scrollback/launch.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/kitty-scrollback/launch.lua b/lua/kitty-scrollback/launch.lua index 493fae53..c1a911ad 100644 --- a/lua/kitty-scrollback/launch.lua +++ b/lua/kitty-scrollback/launch.lua @@ -287,7 +287,6 @@ M.setup = function(kitty_data_str) local config_fn = config_source.configs[config_name] local user_opts = config_fn and config_fn(p.kitty_data) or {} opts = vim.tbl_deep_extend('force', default_opts, global_opts, user_opts) - vim.print(opts.status_window.icons) ksb_backport.setup() ksb_health.setup(p, opts) @@ -406,6 +405,9 @@ M.launch = function() if opts.restore_options then restore_orig_options() end + vim.api.nvim_set_option_value('filetype', 'kitty-scrollback', { + buf = p.bufid, + }) if opts.callbacks and opts.callbacks.after_ready