maxmx03 / fluoromachine.nvim

Synthwave x Fluoromachine port for Neovim
MIT License
227 stars 12 forks source link

Attempt to call field 'nvim_get_hl' (a nil value) #16

Closed anoduck closed 1 year ago

anoduck commented 1 year ago

Received this error while attempting to install the color scheme. It occurs every time the nvim config file is loaded, and regardless of what setting are used.

In order to be compatible with other plugins I have installed, I am uninstalling the distribution provided neovim and building neovim directly from the repo. This should give me the most up to date version of neovim. Once this is done, I will see if the error still occurs.

"init.lua" 2021L, 61868B written
Error detected while processing BufWritePost Autocommands for "init.lua"..script /home/user/.config/nvim/init.lua:
E5113: Error while calling lua chunk: vim/_meta.lua:0: Vim(lua):E5108: Error executing lua ...ker/start/fluoromachine.nvim/lua/fluoromachine/utils.lua:11: attempt to call field 'nvim_get_hl' (a nil value)
stack traceback:
        ...ker/start/fluoromachine.nvim/lua/fluoromachine/utils.lua:11: in function 'get_hl'
        ...cker/start/fluoromachine.nvim/lua/fluoromachine/init.lua:55: in function 'apply_glow'
        ...cker/start/fluoromachine.nvim/lua/fluoromachine/init.lua:90: in function 'setup'
        [string ":lua"]:2: in main chunk
        [C]: in function 'nvim_set_option_value'
        vim/_meta.lua: in function '_set'
        vim/_meta.lua: in function '__newindex'
        /home/user/.config/nvim/init.lua:61: in main chunk
stack traceback:
        [C]: in function 'nvim_set_option_value'
        vim/_meta.lua: in function '_set'
        vim/_meta.lua: in function '__newindex'
        /home/user/.config/nvim/init.lua:61: in main chunk

System: Kali Linux Rolling release (Debian) Neovim Ver: 0.8.3 (eww...) package manager: Packer

anoduck commented 1 year ago

AND guess what? Once the neovim was updated, the error disappeared. Super cool.

This theme rocks. Thanks!