You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- 2. String with two %s placeholders: "alacritty --working-directory %s -e %s" (cwd, command)
269
+
-- 3. Function returning command: function(cmd, env) return "alacritty -e " .. cmd end
269
270
external_terminal_cmd=nil,
270
271
},
271
272
},
@@ -463,6 +464,7 @@ Run Claude Code in a separate terminal application outside of Neovim:
463
464
provider="external",
464
465
provider_opts= {
465
466
external_terminal_cmd="alacritty -e %s", -- %s is replaced with claude command
467
+
-- Or with working directory: "alacritty --working-directory %s -e %s" (first %s = cwd, second %s = command)
466
468
},
467
469
},
468
470
},
@@ -603,6 +605,8 @@ require("claudecode").setup({
603
605
604
606
The custom provider will automatically fall back to the native provider if validation fails or `is_available()` returns false.
605
607
608
+
Note: If your command or working directory may contain spaces or special characters, prefer returning a table of args from a function (e.g., `{ "alacritty", "--working-directory", cwd, "-e", "claude", "--help" }`) to avoid shell-quoting issues.
609
+
606
610
## Community Extensions
607
611
608
612
The following are third-party community extensions that complement claudecode.nvim. **These extensions are not affiliated with Coder and are maintained independently by community members.** We do not ensure that these extensions work correctly or provide support for them.
0 commit comments