orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

org_src_editing_save cannot save the code

Open ghost opened this issue 2 years ago • 0 comments

Describe the bug

When I insert a src block when using org_edit_special to add code into my file, when I press <leader>ow to save code, messages say: "E5108: Error executing lua [NULL]". and I press <leader>ok to abort, messages say: "[orgmode] Edit special callback with invalid file: ?"

Steps to reproduce

  1. Open a org file
  2. Using <s snippet create a block
  3. <leader>o'
  4. Edit code
  5. <leader>ow to save code

Expected behavior

I expect to save code normally and org file will applies my changes

Emacs functionality

No response

Minimal init.lua

I use nix2vim for my neovim config

{ pkgs, dsl, ... }: {
  plugins = with pkgs.vimPlugins; [
    orgmode
  ];
  use.orgmode.setup_ts_grammar = dsl.callWith {};
  setup.orgmode = {
    org_agenda_files = [ "~/document/agenda/*" ];
    org_default_notes_file = "~/document/inbox.org";
  };
}

Screenshots and recordings

No response

OS / Distro

NixOS

Neovim version/commit

0.8.2

Additional context

No response

ghost avatar Jan 02 '23 06:01 ghost