jbyuki / nabla.nvim

take your scientific notes :pencil2: in Neovim
MIT License
581 stars 17 forks source link

Installation error: attempt to call field 'setup' (a nil value) #77

Closed limxuan closed 4 months ago

limxuan commented 4 months ago

Error: ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:361: attempt to call field 'setup' (a nil value)

When i installed the plugin initially it worked fine but after restart and countless attempts of my trying to sync the plugin, deleting .local/share/nvim.

CleanShot 2024-01-10 at 15 59 48@2x

My setup in lazyvim/astronvim

return {
    "jbyuki/nabla.nvim",
    lazy = false,
    opts = {},
    enabled = true,
    keys = {
        {
            "<leader>i",
            function()
                require("nabla").popup()
            end,
            desc = "toggle nabla",
        },
        {
            "<leader>tn",
            function()
                require("nabla").toggle_virt()
            end,
            desc = "toggle nabla",
        },
    },
}
limxuan commented 4 months ago

Misunderstanding on my part, this plugin does not use the setup function so if you have the same error as me remove the setup function or opts ={}