Skip to content

opt: expected table, got string #1036

@fleimgruber

Description

@fleimgruber

Describe the bug

I used the config from README.md (https://github.com/nvim-orgmode/orgmode/blob/a49d5d4c479cbf70acf261c1e8f1f69947ed1b81/README.org#installation)

and got the error:

Failed to run `config` for orgmode

...a/lazy/orgmode/lua/orgmode/config/mappings/map_entry.lua:53: opt: expected table, got string
# stacktrace:
- vim\shared.lua:936 _in_ **validate**
- orgmode\lua\orgmode\config\mappings\map_entry.lua:53 _in_ **action**
- orgmode\lua\orgmode\config\mappings\init.lua:5
- orgmode\lua\orgmode\config\init.lua:6
- orgmode\lua\orgmode\init.lua:122 _in_ **setup**
- AppData/Local/nvim/lua/plugins/lazy.lua:10 _in_ **config**
- scoop/apps/neovim/current/share/nvim/runtime/filetype.lua:36
- scoop/apps/neovim/current/share/nvim/runtime/filetype.lua:35
                                                                                          

checkhealth

orgmode: require("orgmode.health").check()

Orgmode ~

  • ERROR Treesitter grammar is not installed. Run :Org install_treesitter_grammar to install it.
  • ERROR Failed to run healthcheck for "orgmode" plugin. Exception:
    ...Data/Local/nvim-data/lazy/orgmode/lua/orgmode/health.lua:55: loop or previous error loading module 'orgmode.config'

Steps to reproduce

Use the default config from README.md and open an .org file.

Expected behavior

orgmode starts without error.

Emacs functionality

No response

Minimal init.lua

-- Enter your minimal_init.lua here

Screenshots and recordings

No response

nvim-orgmode version

a49d5d4

OS / Distro

Windows 10

Neovim version/commit

NVIM v0.10.3 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions