Compare commits

...

5 Commits

Author SHA1 Message Date
tgrosinger d05329471d Neovim: Disable markdownlint warnings for line length 2026-06-02 10:51:01 -07:00
tgrosinger 272e3ee138 Tmux: Hotkey to kill the current session 2026-05-15 09:36:21 -07:00
tgrosinger 583b78abad Tmux: Save sessions periodically and restore when reopening 2026-05-15 09:31:00 -07:00
tgrosinger f8fd24a8fb Neovim: Add persistence to reopen previous files on restart
Based on the directory, open whatever files were previously open when
vim was closed (intentionally or unexpectedly).
2026-05-15 09:30:09 -07:00
tgrosinger c77adc9234 Tmux: Mouse mode on by default 2026-05-15 09:19:25 -07:00
4 changed files with 52 additions and 1 deletions
@@ -0,0 +1,7 @@
{
// markdownlint-cli2 base config used by nvim-lint (see lua/plugins/markdown.lua).
"config": {
// Disable line-length errors; long lines are soft-wrapped on purpose.
"MD013": false
}
}
@@ -0,0 +1,12 @@
return {
-- Point markdownlint-cli2 at a global config so MD013 (line-length) stays
-- disabled everywhere. The linter runs over stdin, so it can't reliably
-- auto-discover a per-project config; pass --config explicitly instead.
{
"mfussenegger/nvim-lint",
opts = function()
local config = vim.fn.stdpath("config") .. "/.markdownlint-cli2.jsonc"
require("lint").linters["markdownlint-cli2"].args = { "--config", config, "-" }
end,
},
}
@@ -0,0 +1,20 @@
return {
"folke/persistence.nvim",
init = function()
vim.api.nvim_create_autocmd("VimEnter", {
group = vim.api.nvim_create_augroup("PersistenceAutoload", { clear = true }),
nested = true,
callback = function()
if vim.fn.argc() == 0 then
require("persistence").load()
end
end,
})
vim.api.nvim_create_autocmd({ "BufWritePost", "FocusLost" }, {
group = vim.api.nvim_create_augroup("PersistenceCrashSave", { clear = true }),
callback = function()
require("persistence").save()
end,
})
end,
}
+13 -1
View File
@@ -14,7 +14,11 @@ set -g set-clipboard on
### Reload the config with r ### Reload the config with r
bind-key r source-file ~/.tmux.conf\; display-message "Reloaded config" bind-key r source-file ~/.tmux.conf\; display-message "Reloaded config"
### Toggle Mouse Mode ### Kill the current session
bind-key X confirm-before -p "Kill session #S? (y/n)" kill-session
### Mouse mode on by default; toggle with prefix + m
set -g mouse on
bind-key m set-window-option mouse\; display-message "mouse support is now #{?mouse,on,off}" bind-key m set-window-option mouse\; display-message "mouse support is now #{?mouse,on,off}"
### Open LazyGit in a popup ### Open LazyGit in a popup
@@ -73,6 +77,14 @@ set -g @catppuccin_window_status_enable "no"
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux' set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Session persistence (resurrect + continuum)
set -g @continuum-restore 'on'
set -g @continuum-save-interval '10'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-nvim 'session'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'