refactor(plugins): change external terminal provider to ghostty
This commit is contained in:
1 parent
928a33a0de
commit
98adcdc503
1 file changed
+2
-5
@@ -26,17 +26,14 @@ return {
|
|||||||
terminal = {
|
terminal = {
|
||||||
split_side = "right", -- "left" or "right"
|
split_side = "right", -- "left" or "right"
|
||||||
split_width_percentage = 0.30,
|
split_width_percentage = 0.30,
|
||||||
provider = "auto", -- "auto", "snacks", "native", "external", "none", or custom provider table
|
provider = "external", -- "auto", "snacks", "native", "external", "none", or custom provider table
|
||||||
auto_close = true,
|
auto_close = true,
|
||||||
snacks_win_opts = {}, -- Opts to pass to `Snacks.terminal.open()` - see Floating Window section below
|
snacks_win_opts = {}, -- Opts to pass to `Snacks.terminal.open()` - see Floating Window section below
|
||||||
|
|
||||||
-- Provider-specific options
|
-- Provider-specific options
|
||||||
provider_opts = {
|
provider_opts = {
|
||||||
-- Command for external terminal provider. Can be:
|
-- Command for external terminal provider. Can be:
|
||||||
-- 1. String with %s placeholder: "alacritty -e %s" (backward compatible)
|
external_terminal_cmd = "ghostty --working-directory %s -e %s",
|
||||||
-- 2. String with two %s placeholders: "alacritty --working-directory %s -e %s" (cwd, command)
|
|
||||||
-- 3. Function returning command: function(cmd, env) return "alacritty -e " .. cmd end
|
|
||||||
external_terminal_cmd = nil,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user