Closed heygarrett closed 42 minutes ago
TIL nvim-lspconfig
uses a metatable to set up the server configs:
https://github.com/neovim/nvim-lspconfig/blob/bd7c76375a511994c9ca8d69441f134dc10ae3bd/lua/lspconfig.lua#L36
So it looks like neoconf
may just be revealing that they're not actually properties in the lspconfig
table. Does that make this issue irrelevant? Let me know; I'm happy to close it.
That has nothing to do with neoconf...
Did you check docs and existing issues?
Neovim version (nvim -v)
Operating system/version
macOS 14.5 (23F79)
Describe the bug
When using nvim-lspconfig to configure a language server, the language server name has an
Undefined field
warning (eg, inrequire("lspconfig").lua_ls.setup({})
,lua_ls
has warning "Undefined fieldlua_ls
"). This happens with every language server I have configured.Steps To Reproduce
lua-language-server
installedrepro.lua
to open therepro.lua
in NeovimExpected Behavior
The
lua_ls
inrequire("lspconfig").lua_ls.setup({})
will not have anUndefined field
warning.Repro