A readme explaining how to make neovim work fast
added my own plugin for tmux-fzf-keys
2 files changed, +10 -2
+8-0lua/config/autocmds/init.lua
| @@ -31,6 +31,14 @@ vim.api.nvim_create_autocmd({ "FocusLost", "BufLeave", "CmdlineEnter", "QuitPre" | ||
| 31 | 31 | end, |
| 32 | 32 | }) |
| 33 | 33 | |
| 34 | +-- tmux files as tmux filetype | |
| 35 | +vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { | |
| 36 | + pattern = "*.tmux", | |
| 37 | + callback = function() | |
| 38 | + vim.bo.filetype = "bash" | |
| 39 | + end, | |
| 40 | +}) | |
| 41 | + | |
| 34 | 42 | -- stop making comments on new lines |
| 35 | 43 | vim.opt.formatoptions:remove({ "c", "r", "o" }) |
| 36 | 44 | vim.api.nvim_create_autocmd("FileType", { |
+2-2tmux.conf
| @@ -21,12 +21,11 @@ TMUX_FZF_LAUNCH_KEY="C-f" | ||
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | # Prefix keybindings |
| 24 | -bind r source-file ~/.tmux.conf \; display-popup -x "200" -y 0 -w 30 -h 3 -E 'echo Reloaded tmux config; sleep 2' | |
| 24 | +bind r source-file ~/.tmux.conf \; display "Reloaded the config" | |
| 25 | 25 | bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{pane_current_path}" |
| 26 | 26 | bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}" |
| 27 | 27 | bind e show-environment |
| 28 | 28 | bind g display-popup -E -w 90% -h 90% 'lazygit' |
| 29 | -bind ? display-popup -E 'tmux list-keys -T prefix | grep -Po "(?<=prefix\s).*" | fzf --header="Prefixed Keys" --preview="echo {}" --border --preview-window=down:3:wrap | awk '\''{first = $1; $1=""; print $0}'\'' | sed '\''s/^ //g'\'' | xargs -I{} tmux {}' | |
| 30 | 29 | |
| 31 | 30 | |
| 32 | 31 | # Keybindings |
| @@ -62,6 +61,7 @@ set -g @plugin 'kiyoon/treemux' | ||
| 62 | 61 | set -g @plugin 'sainnhe/tmux-fzf' |
| 63 | 62 | set -g @plugin 'imomaliev/tmux-keyboard-layout' |
| 64 | 63 | set -g @plugin 'joshmedeski/tmux-nerd-font-window-name' |
| 64 | +set -g @plugin 'huncholane/tmux-fzf-keys' | |
| 65 | 65 | |
| 66 | 66 | |
| 67 | 67 | # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) |