linrongbin16 / lsp-progress.nvim

A performant lsp progress status for Neovim.
MIT License
195 stars 7 forks source link

Getting a lua error after configuring the plugin for Vim 9.1 #127

Closed iulianbarbu closed 3 months ago

iulianbarbu commented 3 months ago

The error I am getting is:

.../plugged/lsp-progress.nvim/lua/lsp-progress/defaults.lua:171: attempt to call a nil value (field 'deepcopy')

My vimrc contains this setup:

lua require('lsp-progress').setup()

I have installed lua5.4. Also, in terms of nerd-fonts, I set it up so that font-patcher is on the path. I am not sure if this is what the plugin needs or I am totally off.

I am a vim/lua/nerd-fonts newbie, so my questions revolve around:

  1. What Lua version is best so that the plugin works for Vim too?
  2. What exactly should I install for nerd-fonts?
linrongbin16 commented 3 months ago

hi @iulianbarbu ,

  1. I didn't design this plugin to work for Vim, it's only for Neovim. I don't think it can work for Vim, since I implement this plugin with Neovim's lua api, which is totally not compatible with Vim.
  2. The dependencies for nerd-fonts is in this line:

    https://github.com/linrongbin16/lsp-progress.nvim/blob/b673377c50ebaf37053f23cc3caeeb6d469ba1c1/lua/lsp-progress/defaults.lua#L133

    It uses the nf-fa-gear font in nerdfonts.com - cheat-sheet (see below screenshot):

    image

    It looks like this (if you have a properly configured nerd font):

    image

    I recommend you choose & install one font from nerdfonts.com, and remember to configure the installed font in your terminal (iTerm2 in macOS, Windows Terminal in Windows 10, Gnome Terminal in ubuntu gnome desktop, or kitty/wezterm/alacritty/etc).

iulianbarbu commented 3 months ago

Hi @linrongbin16 ! Thanks for the response and clarifications.

I guess I'll have to look into neovim for now to enable this.

Also, I think this issue can be closed now.

linrongbin16 commented 3 months ago

hi @iulianbarbu ,

FYI, in neovim, you still need to install lsp servers, and configure them to make this plugin work.

actually it's not going to be very easy.

personally I am using below plugins to work with this 'lsp-progress' plugin:

At last, compare with Vim, Neovim is actually much more heavy engineering because the lua language requires user write a lot. But also it provide much more feature.

Hope these introduction helps you enjoy neovim with lsp.