Closed katawful closed 2 years ago
Hello! Hmm, this looks correct to me. I tried using your transpiled Lua code and it works for me - vim
is recognised as a global and definitions are successfully located.
Have you tried debugging this to make sure that this code even ends up executing? Especially the opts.settings
assignment?
opts
when printed has all of the settings I set with said set opts.settings
right before the servers:setup
call. But when I go and load a file with the server, none of the settings I picked load. I'm not sure what's happening, everything seems fine on my end as well. I have also deleted the local server, and don't have a global one installed as well
Hmm are your full dotfiles available somewhere? Here's a recording of me using snippet you provided, w/o any issues:
Do you keep the compiled Lua code outside of version control, or how does it work?
They get compiled on runtime, so I don't need to keep them versioned
I see. I'm unable to repro this using the transpiled Lua snipped you provided, so I'm a bit at a loss atm. Just 10 minutes ago I added a new issue template for server issues, if you believe this is an issue with nvim-lsp-installer could you please file an issue using that template instead (it makes it so much easier for me to reproduce and isolate the issue) 🙏
Problem description
I am attempting to use this plugin to not just install plugins, which works perfectly, but also apply server settings without needing an extra setup call. The documentation says this is possible with an settings table. The following is the fennel then the compiled lua code:
While the settings table does get inserted to
opts
just fine, regardless if i use thesetup
orsetup_lsp
method for each server theopts
table doesn't actually apply to the server. This is simply checked because "vim" is considered an unknown global still when editing a lua fileNeovim version (>= 0.6)
NVIM v0.6.1 Build type: Release LuaJIT 2.0.5
Operating system/version
Linux Kat-Arch 5.16.5-arch1-1 #1 SMP PREEMPT Tue, 01 Feb 2022 21:42:50 +0000 x86_64 GNU/Linux
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
all
Actual behavior
Settings are not applied to servers when using a bootstrap
Expected behavior
Settings should apply
Healthcheck output
Screenshots
No response