Skip to content

Commit

Permalink
hotfix: 🥵 custom split, I broke things 😢
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Aug 14, 2024
1 parent c63ad1b commit cb34780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/kulala/globals/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local FS = require("kulala.utils.fs")

local M = {}

M.VERSION = "3.1.0"
M.VERSION = "3.1.1"
M.UI_ID = "kulala://ui"
M.SCRATCHPAD_ID = "kulala://scratchpad"
M.HEADERS_FILE = FS.get_plugin_tmp_dir() .. "/headers.txt"
Expand Down
3 changes: 2 additions & 1 deletion lua/kulala/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ end

local open_buffer = function()
local prev_win = vim.api.nvim_get_current_win()
vim.cmd(CONFIG.get().split_direction .. " " .. GLOBALS.UI_ID)
local sd = CONFIG.get().split_direction == "vertical" and "vsplit" or "split"
vim.cmd(sd .. " " .. GLOBALS.UI_ID)
if CONFIG.get().winbar then
WINBAR.create_winbar(get_win(), get_buffer())
end
Expand Down

2 comments on commit cb34780

@shaeinst
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, m sorry. I should have caught this in the first place. i was just about to make a PR.

@gorillamoe
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, we were quick to fix it, probably no one affected by it 😅

Please sign in to comment.