diff --git a/after/ftplugin/org.lua b/after/ftplugin/org.lua index 27cda45..f6657a7 100644 --- a/after/ftplugin/org.lua +++ b/after/ftplugin/org.lua @@ -11,3 +11,8 @@ vim.keymap.set( desc = 'ORG: meta return' } ) + +-- Force LF line endings for Org files (fixes capture/refile newline duplication on Windows) +if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then + vim.opt_local.fileformat = "unix" +end diff --git a/lua/options.lua b/lua/options.lua index c2945fa..82abde1 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -14,7 +14,7 @@ sl_opt = { org_base_folder = ORG_BASE_FOLDER, org_agenda_files = ORG_BASE_FOLDER .. '/*.org', org_default_notes_file = ORG_BASE_FOLDER .. '/refile.org', - org_archive_location = ORG_BASE_FOLDER .. '/.archive.org', + org_archive_location = ORG_BASE_FOLDER .. '/archive.org', org_roam_folder = ORG_BASE_FOLDER .. '/roam', }