irongit

A readme explaining how to make neovim work fast

added my own plugin for tmux-fzf-keys

huncholanehuncholaneauthored
parent 99585c1commit d8c350cbf6fb739486a3e552e76191327c7df2abBrowse files

2 files changed, +10 -2

+8-0lua/config/autocmds/init.lua
@@ -31,6 +31,14 @@ vim.api.nvim_create_autocmd({ "FocusLost", "BufLeave", "CmdlineEnter", "QuitPre"
3131 end,
3232 })
3333
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+
3442 -- stop making comments on new lines
3543 vim.opt.formatoptions:remove({ "c", "r", "o" })
3644 vim.api.nvim_create_autocmd("FileType", {
+2-2tmux.conf
@@ -21,12 +21,11 @@ TMUX_FZF_LAUNCH_KEY="C-f"
2121
2222
2323 # 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"
2525 bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{pane_current_path}"
2626 bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}"
2727 bind e show-environment
2828 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 {}'
3029
3130
3231 # Keybindings
@@ -62,6 +61,7 @@ set -g @plugin 'kiyoon/treemux'
6261 set -g @plugin 'sainnhe/tmux-fzf'
6362 set -g @plugin 'imomaliev/tmux-keyboard-layout'
6463 set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
64+set -g @plugin 'huncholane/tmux-fzf-keys'
6565
6666
6767 # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)