You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of neoconf.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478
Run "nvim -V1 -v" for more info
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, in require("lspconfig").lua_ls.setup({}), lua_ls has warning "Undefined field lua_ls"). This happens with every language server I have configured.
Steps To Reproduce
Have lua-language-server installed
Use the included repro.lua to open the repro.lua in Neovim
Expected Behavior
The lua_ls in require("lspconfig").lua_ls.setup({}) will not have an Undefined field warning.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
"folke/neoconf.nvim",
-- add any other plugins here
{
"https://github.com/neovim/nvim-lspconfig",
config=function()
require("neoconf").setup({})
require("lspconfig").lua_ls.setup({})
end,
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: