A readme explaining how to make neovim work fast
save folds on leave buff
2 files changed, +12 -2
+10-0lua/config/autocmds/init.lua
| @@ -90,3 +90,13 @@ vim.api.nvim_create_user_command("SetTabs", function(opts) | ||
| 90 | 90 | vim.notify("Invalid number", vim.log.levels.ERROR) |
| 91 | 91 | end |
| 92 | 92 | 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 | ||
| 13 | 13 | set -g set-clipboard on |
| 14 | 14 | set -g automatic-rename on |
| 15 | 15 | 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@" | |
| 18 | 18 | TMUX_FZF_MENU=\ |
| 19 | 19 | "foo\necho 'Hello!'\n"\ |
| 20 | 20 | "bar\nls ~\n"\ |