Compare commits
3 commits
5ac364186d
...
cafe6a98a2
Author | SHA1 | Date | |
---|---|---|---|
Peter Cai | cafe6a98a2 | ||
Peter Cai | 3e82da7802 | ||
Peter Cai | a03404e625 |
|
@ -1,13 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$TERM_PROGRAM" != "WezTerm" ]; then
|
||||
exec vim "$@"
|
||||
exec nvim "$@"
|
||||
fi
|
||||
|
||||
pane_id=$(wezterm cli get-pane-direction Right)
|
||||
|
||||
if [ -z "$pane_id" ]; then
|
||||
exec wezterm cli split-pane --right --percent 70 -- vim "$@"
|
||||
if [ -z "$pane_id" ] && [ ! -d "$1" ]; then
|
||||
exec wezterm cli split-pane --right --percent 70 -- nvim "$@"
|
||||
else
|
||||
exec wezterm cli spawn -- vim "$@"
|
||||
exec wezterm cli spawn -- nvim "$@"
|
||||
fi
|
||||
|
|
|
@ -2,3 +2,5 @@
|
|||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
vim.opt.relativenumber = false
|
||||
-- Autoformatting can break stuff; turn it off.
|
||||
vim.g.autoformat = false
|
||||
|
|
Loading…
Reference in a new issue