mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 10:41:12 +01:00
changed split confirmation message to 'a' from 'another'
This commit is contained in:
2
init.lua
2
init.lua
@@ -677,7 +677,7 @@ local function smart_open_split(prompt_bufnr, split_type)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if open_tab then
|
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
|
if choice ~= 1 then
|
||||||
-- User chose No → jump to the tab where file is open
|
-- User chose No → jump to the tab where file is open
|
||||||
vim.api.nvim_set_current_tabpage(open_tab)
|
vim.api.nvim_set_current_tabpage(open_tab)
|
||||||
|
|||||||
@@ -115,8 +115,7 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if open_tab then
|
if open_tab then
|
||||||
local choice = vim.fn.confirm('File is already open in another tab. Open split here anyway?', '&Yes\n&No',
|
local choice = vim.fn.confirm('File is already open in a tab. Open split here anyway?', '&Yes\n&No', 2)
|
||||||
2)
|
|
||||||
if choice ~= 1 then
|
if choice ~= 1 then
|
||||||
-- User chose No → jump to the tab where file is open
|
-- User chose No → jump to the tab where file is open
|
||||||
vim.api.nvim_set_current_tabpage(open_tab)
|
vim.api.nvim_set_current_tabpage(open_tab)
|
||||||
|
|||||||
Reference in New Issue
Block a user