From a03404e6252e1c286a4ee52ae03fa7c0cfca3d04 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 8 Apr 2024 18:55:16 -0400 Subject: [PATCH 1/3] Disable auto-formatting for nvim --- nvim/.config/nvim/lua/config/options.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/.config/nvim/lua/config/options.lua b/nvim/.config/nvim/lua/config/options.lua index f8b335b..b74bd6c 100644 --- a/nvim/.config/nvim/lua/config/options.lua +++ b/nvim/.config/nvim/lua/config/options.lua @@ -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 From 3e82da78021a9c6bfa2ee79b411f8512e4c68de1 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 8 Apr 2024 18:55:59 -0400 Subject: [PATCH 2/3] nnn: Switch to nvim --- nnn/.local/bin/vim-wrapper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nnn/.local/bin/vim-wrapper b/nnn/.local/bin/vim-wrapper index 3ac7977..580a470 100755 --- a/nnn/.local/bin/vim-wrapper +++ b/nnn/.local/bin/vim-wrapper @@ -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 "$@" + exec wezterm cli split-pane --right --percent 70 -- nvim "$@" else - exec wezterm cli spawn -- vim "$@" + exec wezterm cli spawn -- nvim "$@" fi From cafe6a98a2597922f3aecc27d713c675be17dff6 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 8 Apr 2024 18:56:40 -0400 Subject: [PATCH 3/3] nnn: Open directories always in new panes --- nnn/.local/bin/vim-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnn/.local/bin/vim-wrapper b/nnn/.local/bin/vim-wrapper index 580a470..941ab7e 100755 --- a/nnn/.local/bin/vim-wrapper +++ b/nnn/.local/bin/vim-wrapper @@ -6,7 +6,7 @@ fi pane_id=$(wezterm cli get-pane-direction Right) -if [ -z "$pane_id" ]; then +if [ -z "$pane_id" ] && [ ! -d "$1" ]; then exec wezterm cli split-pane --right --percent 70 -- nvim "$@" else exec wezterm cli spawn -- nvim "$@"