Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
searleser97 committed Oct 30, 2024
1 parent a9458e8 commit 20625c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/toggleterm/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ local config = {
},
responsiveness_settings = {
horizontal_breakpoint = 135,
}
},
}

---Derive the highlights for a toggleterm and merge these with the user's preferences
Expand Down
3 changes: 2 additions & 1 deletion lua/toggleterm/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ function M.open_split(size, term)
if config.persist_size then M.save_window_size(term.direction, split_win.window) end
api.nvim_set_current_win(split_win.window)
local window_width = vim.o.columns
local horizontal_breakpoint = require("toggleterm.config").get("responsiveness_settings").horizontal_breakpoint
local horizontal_breakpoint =
require("toggleterm.config").get("responsiveness_settings").horizontal_breakpoint
if term.direction == "horizontal" and window_width < horizontal_breakpoint then
vim.cmd(commands.existing_stacked)
else
Expand Down
2 changes: 1 addition & 1 deletion stylua.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ column_width = 100
indent_type = "Spaces"
quote_style = "AutoPreferDouble"
indent_width = 2
collapse_simple_statement = 'Always'
collapse_simple_statement = "Always"

0 comments on commit 20625c3

Please sign in to comment.