From 3662ac1e2cf6378e90d3656195d3e20aef78db7d Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Sun, 21 Dec 2025 23:26:15 +0000 Subject: [PATCH] Added shell config for nushell --- lua/config/shell.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/config/shell.lua diff --git a/lua/config/shell.lua b/lua/config/shell.lua new file mode 100644 index 0000000..7d6b4d7 --- /dev/null +++ b/lua/config/shell.lua @@ -0,0 +1,13 @@ +local shell_path = os.getenv("SHELL") or "" + +if (vim.fn.executable("nu") == 1) and shell_path:find("nu") then + vim.opt.sh = "nu" + vim.opt.shelltemp = false + vim.opt.shellredir = "out+err> %s" + vim.opt.shellcmdflag = "--stdin --no-newline -c" + vim.opt.shellxescape = "" + vim.opt.shellxquote = "" + vim.opt.shellquote = "" + vim.opt.shellpipe = + "| complete | update stderr { ansi strip } | tee { get stderr | save --force --raw %s } | into record" +end