New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(lsp): enforce lvim completion for lua-server #3035
Conversation
lspconfig.util.default_config = vim.tbl_extend("force", lspconfig.util.default_config, { | ||
on_new_config = make_on_new_config(lspconfig.util.default_config.on_new_config), | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose passing on_new_config
in opts
doesn't work?
Alternatively, lua_dev.setup()
returns the settings, so we could try return vim.tbl_deep_extend("force", luadev, opts)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose passing
on_new_config
inopts
doesn't work?
that one is getting overwritten unfortunately, I nearly want to write our own lua_dev.setup()
and skip this entire dance..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, lua_dev.setup() returns the settings, so we could try return vim.tbl_deep_extend("force", luadev, opts)
It seems that nlspsettings
overrides the configuration in that case (not sure if it's a bug / intended or something else going on). So that might not work either...
@kylo252 I just removed my custom config and used this instead, and it worked just fine, |
Agree with abz. I don't think plenary should be a default either... |
Edit: it was the
I did change the
the way I think about it is that you'd want these kind of completion for a nice dev environment:
I'll try to see if I can get the lua server to ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @kylo252, it is much faster now
LGTM 🚀
I missed that, looks pretty good! |
Description
lua-dev
has changed the way it accepts settings, this will now hopefully accommodate those changes!lvim.
auto-completion inconfig.lua
fixes #3002
How Has This Been Tested?
config.lua
start typinglvim.builtin.telescope.
config.lua
start typingrequire'packer.