irongit

A readme explaining how to make neovim work fast

save folds on leave buff

huncholanehuncholaneauthored
parent 29ed31ecommit 41f86bcd54c8305cf63385d30cbb07af57fe8de1Browse files

2 files changed, +12 -2

+10-0lua/config/autocmds/init.lua
@@ -90,3 +90,13 @@ vim.api.nvim_create_user_command("SetTabs", function(opts)
9090 vim.notify("Invalid number", vim.log.levels.ERROR)
9191 end
9292 end, { desc = "Set tab width for current buffer.", nargs = 1 })
93+
94+-- persistent folds
95+vim.api.nvim_create_autocmd("BufWinLeave", {
96+ pattern = "*",
97+ command = "silent! mkview",
98+})
99+vim.api.nvim_create_autocmd("BufWinEnter", {
100+ pattern = "*",
101+ command = "silent! loadview",
102+})
+2-2tmux.conf
@@ -13,8 +13,8 @@ set -g xterm-keys on
1313 set -g set-clipboard on
1414 set -g automatic-rename on
1515 set -g automatic-rename-format "#{b:pane_current_path##*/} → #{pane_current_command}"
16-set -g default-terminal "screen-256color"
17-set -ag terminal-overrides ",xterm-256color:RGB"
16+set -g default-terminal "tmux-256color"
17+set -ag terminal-overrides ",xterm-256color:Tc,smcup@:rmcup@"
1818 TMUX_FZF_MENU=\
1919 "foo\necho 'Hello!'\n"\
2020 "bar\nls ~\n"\