Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d05329471d | |||
| 272e3ee138 | |||
| 583b78abad | |||
| f8fd24a8fb | |||
| c77adc9234 |
@@ -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
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user