From 559dbe8cd8c760213e70637627ce515526e6b15e Mon Sep 17 00:00:00 2001 From: psychhim Date: Sun, 5 Oct 2025 23:14:45 +0530 Subject: [PATCH] changed split confirmation message to 'a' from 'another' --- init.lua | 2 +- lua/custom/plugins/filetree.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index aacde8c..14390ec 100644 --- a/init.lua +++ b/init.lua @@ -677,7 +677,7 @@ local function smart_open_split(prompt_bufnr, split_type) end if open_tab then - local choice = vim.fn.confirm('File is already open in another tab. Open split here anyway?', '&Yes\n&No', 2) + local choice = vim.fn.confirm('File is already open in a tab. Open split here anyway?', '&Yes\n&No', 2) if choice ~= 1 then -- User chose No → jump to the tab where file is open vim.api.nvim_set_current_tabpage(open_tab) diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua index b1c6d68..3bcff3c 100644 --- a/lua/custom/plugins/filetree.lua +++ b/lua/custom/plugins/filetree.lua @@ -115,8 +115,7 @@ return { end if open_tab then - local choice = vim.fn.confirm('File is already open in another tab. Open split here anyway?', '&Yes\n&No', - 2) + local choice = vim.fn.confirm('File is already open in a tab. Open split here anyway?', '&Yes\n&No', 2) if choice ~= 1 then -- User chose No → jump to the tab where file is open vim.api.nvim_set_current_tabpage(open_tab)