19 lines
454 B
Lua
19 lines
454 B
Lua
-- make C-CR in insert mode behave like org_meta_return
|
|
-- in normal mode
|
|
|
|
vim.keymap.set(
|
|
"i",
|
|
"<C-CR>",
|
|
|
|
'<cmd>lua require("orgmode").action("org_mappings.meta_return")<CR>', {
|
|
silent = true,
|
|
buffer = true,
|
|
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
|