From 5b78c227e9200ab53b004f5610c4cdbdbe880f73 Mon Sep 17 00:00:00 2001 From: RageCage64 Date: Wed, 6 Mar 2024 10:51:04 -0500 Subject: [PATCH] fix tmux stuff, add markdown specific config --- .tmux.conf | 7 ++++++- nvim/lua/RageCage64/set.lua | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 46994a4..60c9a17 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -2,7 +2,7 @@ set -sg escape-time 0 # This is convenient sometimes -set -g mouse +set -g mouse on # Attempting to get terminal colour # set -g default-terminal "tmux-256color" @@ -15,3 +15,8 @@ set -g status-bg default set -g status-position top set -g status-interval 1 set -g status-left "" + +# Copy mode with vim bindings +setw -g mode-keys vi + +bind C-c run "tmux save-buffer - | wlcopy" diff --git a/nvim/lua/RageCage64/set.lua b/nvim/lua/RageCage64/set.lua index 2f2eada..a8538be 100644 --- a/nvim/lua/RageCage64/set.lua +++ b/nvim/lua/RageCage64/set.lua @@ -23,3 +23,11 @@ vim.opt.signcolumn = "yes" vim.opt.isfname:append("@-@") vim.opt.updatetime = 50 + +vim.api.nvim_create_autocmd('FileType', { + pattern = 'markdown', + group = vim.api.nvim_create_augroup('markdown settings', { clear = true }), + callback = function() + vim.opt.wrap = true + end, +})