shaunsingh / nord.nvim

Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
GNU General Public License v2.0
807 stars 107 forks source link

Having issues with installing nord.nvim #28

Closed PhantomRex123 closed 3 years ago

PhantomRex123 commented 3 years ago

Here is the error i get

Error detected while processing /home/ryan/.config/nvim/plugged/nord.nvim/colors/nord.vim:
line    9:
E5105: Error while calling lua chunk: .../ryan/.config/nvim/plugged/nord.nvim/lua/nord/colors.lua:44: attempt to index field 'g' (a nil value)

And then here is my init.vim

call plug#begin()
Plug 'sheerun/vim-polyglot'
Plug 'ryanoasis/vim-devicons'
Plug 'preservim/nerdtree'
Plug 'pearofducks/ansible-vim'
Plug 'Yggdroot/indentLine'
Plug 'itchyny/lightline.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'shaunsingh/nord.nvim'
call plug#end()

colorscheme nord
shaunsingh commented 3 years ago

By any chance were you using an older version of the configuration I posted on the README? I recently changed the vimscript configuration instructions

PhantomRex123 commented 3 years ago

By any chance were you using an older version of the configuration I posted on the README? I recently changed the vimscript configuration instructions

I installed this yesterday , so i guess no?

josephkerkhof commented 3 years ago

I am also having this issue with a very similar error message with a fresh installation. I'm not a Lua developer, but it seems like something in the vim.g array reference is going awry.

PhantomRex123 commented 3 years ago

I am also having this issue with a very similar error message with a fresh installation. I'm not a Lua developer, but it seems like something in the vim.g array reference is going awry.

I have found a way to fix this issue, init.vim

call plug#begin()
  Plug 'arcticicestudio/nord-vim', { 'branch': 'develop', 'on':  'NERDTreeToggle' }
call plug#end()

" Set the color scheme
colorscheme nord

Run :PlugInstall and it should work :)

shaunsingh commented 3 years ago

I have found a way to fix this issue, init.vim

Looks like thats nord-vim, not nord.nvim.

Could you guys try setting all the settings at the bottom? I imagine I messed something up with vim.g. and the options when I was refactoring two days back

bjanaszek commented 3 years ago

I've tried the sample vimscript configuration, and am still seeing the error. I just installed the plugin today.

PhantomRex123 commented 3 years ago

Ok! So i fixed this error by installing the 'Nightly version' of neovim :)

PhantomRex123 commented 3 years ago

Here is an image : Latest stable version of neovim

Screenshot from 2021-08-06 23-04-34 Nightly version

Screenshot from 2021-08-06 23-05-20

shaunsingh commented 3 years ago

Thanks, I previously tested it with 0.5 stable but something might've changed within the last few commits

The stable verion you are using is neovim 0.5.0 correct? I'm targeting 0.5.0 stable minimum

Additionally. what OS is that and how did you install neovim? Looks like macOS but I'm not sure if it is

PhantomRex123 commented 3 years ago

I haven't tested it on 5.0 , the thing is sudo apt install neovim installs v4.3 which doesn't fully support new commits added. https://www.reddit.com/r/neovim/comments/fyemoh/how_can_i_update_my_neovim/

shaunsingh commented 3 years ago

I can't really support 0.4.x neovim because it just lacks lua features that the theme needs to function sorry. As someone in that thread said, you can use the app image.

You can also use the ppa via

sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim

Or install another package manager alongside apt such as nix

@musicaljoeker @bjanaszek can you try the fixes above as well?