From 88f6ebf48974846d73450d3db139bee1a0ff8ae2 Mon Sep 17 00:00:00 2001 From: Warwick New Date: Tue, 21 Apr 2026 11:01:50 +0100 Subject: [PATCH] Made the auto line wrap work on tex and org and removed folder structure from org-roam --- lua/defaults.lua | 2 +- lua/plugins/org.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/defaults.lua b/lua/defaults.lua index a1dd214..1d477fd 100644 --- a/lua/defaults.lua +++ b/lua/defaults.lua @@ -47,7 +47,7 @@ vim.opt.foldenable = false -- Text wrap at 80 chars for some file types vim.api.nvim_create_autocmd('BufWinEnter', { - pattern = { '*.md', "*.txt" }, + pattern = { '*.md', "*.txt", "*.tex", "*.org" }, callback = function() vim.opt_local.colorcolumn = '80' vim.opt_local.textwidth = 80 diff --git a/lua/plugins/org.lua b/lua/plugins/org.lua index 704703e..4f70f54 100644 --- a/lua/plugins/org.lua +++ b/lua/plugins/org.lua @@ -18,12 +18,12 @@ return { f = { description = "fleeting", template = "#+filetags: fleeting\n\n%?", - target = "fleeting%[sep]%<%Y%m%d%H%M%S>-%[slug].org", + target = "%<%Y%m%d%H%M%S>-fleeting-%[slug].org", }, s = { description = "summary", template = "#+filetags: summary\n\n* %?\n** Description\n\n** Notes\n - pg 1: ", - target = "literature%[sep]%<%Y%m%d%H%M%S>-%[slug].org", + target = "%<%Y%m%d%H%M%S>-summary-%[slug].org", }, a = { description = "atomic",