krivahtoo / silicon.nvim

Neovim plugin for silicon in Rust
MIT License
295 stars 10 forks source link

Not correctly parsing my setup config #39

Open chris-av opened 1 year ago

chris-av commented 1 year ago

Hello! Really love this plug in!! Was working maybe a year ago perfectly. Now it won't work. Whether I do the regular installation or building from source. The bug is consistent on two different machines: on a 2016 MacBook Pro, and on a Lenovo Thinkpad running Arch Linux.

Here is my Arch machine stats in case that matters:

OS: Arch Linux x86_64 
Host: 20S1S2FB00 ThinkPad T14 Gen 1 
Kernel: 6.4.1-arch1-1 
Terminal: kitty 
CPU: Intel i5-10310U (8) @ 4.400GHz 
GPU: Intel CometLake-U GT2 [UHD Graphics] 

NVIM: v0.9.1

I am using the bare minimum config. Doesn't matter if I do require('silicon').setup() or if I feed it an actual table with valid options, the behavior is the same. For now I am using this minimal config copied from the readme:

require('silicon').setup({
  font = 'FantasqueSansMono Nerd Font=16',
  theme = 'Monokai Extended',
})

I noticed two different behaviors:

  1. When doing the regular installation, neovim merely crashes. No error or output. Running nvim file will flash a blank screen and quickly exit neovim. :

https://github.com/krivahtoo/silicon.nvim/assets/41182258/bd85abb2-e3ed-45fe-83c3-02e970fed781

  1. When I build from source, neovim actually throws an error like this:

swappy-20230716_003509

use {
    'krivahtoo/silicon.nvim',
    run = './install.sh',                 # installing this way yields behavior 1)
    run = './install.sh build',           # installing this way yields behavior 2)
}

You can find my neovim config here and see how I am importing silicon. When building, it builds to completion. Error only shows if I import the silicon package and it breaks no matter what I put in the config.

Thanks again for the wonderful plug in!

ozwaldorf commented 1 year ago

Having issues also with a similar setup:

OS: Arch Linux x86_64 Kernel: 6.3.5-arch1-1 NVIM: 0.9.1

The issue is the exact same, silently crashes nvim when installed via the binary mode, and the string/boolean type error when using the build mode

stefanlogue commented 1 year ago

Running into this issue when building from source also on an M1 Pro MacBook Pro, NVIM 0.9.1

krivahtoo commented 1 year ago

Thanks @chris-av for reporting this. I have been busy for the past few months, I haven't been able to work on silicon.nvim. I think this is related to the Neovim version, currently silicon.nvim works on nightly builds. I will create a new branch for 0.9.

tulgeywood commented 9 months ago

Any chance this might get a fix or workaround?