diff --git a/common/neovim/init.lua b/common/neovim/init.lua index 7113e9a..fd0b10c 100644 --- a/common/neovim/init.lua +++ b/common/neovim/init.lua @@ -281,6 +281,14 @@ vim.api.nvim_create_autocmd("TextYankPost", { end, }) +vim.api.nvim_create_autocmd("InsertLeave", { + pattern = "*", + callback = function() + vim.lsp.buf.formatting_seq_sync() + vim.cmd 'write' + end, +}) + vim.api.nvim_create_autocmd("FileType", { pattern = "gitcommit", callback = function() @@ -323,7 +331,6 @@ local keymap = { ['k'] = { ':bnext', m.s }, ['j'] = { ':bprevious', m.s }, - ['s'] = "SessionToggleecho 'Persisting Session: ' .. g:persisting .. ' (' .. getcwd() .. ')'", ['S'] = "SessionSaveecho 'Saved Session: ' .. getcwd()", ['l'] = "SessionLoadecho 'Loaded Session: ' .. getcwd()", @@ -335,6 +342,7 @@ local keymap = { ['m'] = 'lua SynGroup()', [''] = ':qa', + [''] = ':x', [''] = 'Telescope git_files', [''] = 'Telescope live_grep', @@ -375,6 +383,7 @@ local keymap = { }, i = { [''] = '', + [''] = ':x', }, } for mode, mappings in pairs(keymap) do diff --git a/common/tmux/conf b/common/tmux/conf index e848b9d..3355116 100644 --- a/common/tmux/conf +++ b/common/tmux/conf @@ -40,12 +40,14 @@ set -g window-status-current-style "fg=colour8 bg=colour0" set -g window-status-format " #W" set -g window-status-separator "" set -g window-status-current-format " #W" -set -g status-left "#h:#S #W" -set -g status-right-length 280 -set -g status-right "#(kubeline && printf ' ')" - set -ag status-right "#(pwd | $XDG_CONFIG_HOME/lytedev-dotfiles/common/bin/glancepath) " - set -ag status-right "#(cd '#{pane_current_path}' && git rev-parse --abbrev-ref --sq HEAD | tr -d \"'\")" - set -ag status-right "#{pane_current_command}" +set -g status-right "" +set -g status-left "#h:#S #W " + set -ag status-left "#(pwd | $XDG_CONFIG_HOME/lytedev-dotfiles/common/bin/glancepath) " + set -ag status-left "#(cd '#{pane_current_path}' && git rev-parse --abbrev-ref --sq HEAD | tr -d \"'\")" + set -ag status-left "#(kubeline && printf ' ')" +set -g status-left-length 1000 +# set -g status-right-length 280 + # set -ag status-right "#{pane_current_command}" set -g message-style "fg=colour7 bg=colour18" set -g pane-active-border-style bg=black,fg=blue