Skip to content

Custom dynamic variables option is not working #461

@teleivo

Description

@teleivo

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

v0.11.0-dev-722

Operating system/version

Debian 6

Actual behavior

I get unrecognized configs found in setup: { "custom_dynamic_variables.foo" }

vim.g.rest_vim = {
  custom_dynamic_variables = {
    foo = function() return "foo" end,
  },
}

Expected behavior

That I can set a custom dynamic variable function.

Steps to reproduce

Use my supplied config. I can for example set ui.keybinds.prev.

Other information

No response

Repro (lazy.nvim)

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "rest-nvim/rest.nvim",
        {
            "nvim-treesitter/nvim-treesitter",
            build = ":TSUpdate",
            main = "nvim-treesitter.configs",
            opts = {
                ensure_installed = { "http" },
                sync_install = false,
                highlight = { enable = true },
                indent = { enable = true },
            },
        },
    },
})

Metadata

Metadata

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