-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix(leanls): migrate to vim.lsp.config #4084
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
Conversation
650c8bc to
5cb47f2
Compare
|
I am not sure if I understand the linter message for |
lsp/leanls.lua
Outdated
| or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) | ||
| ) | ||
| end, | ||
| on_new_config = function(config, root_dir) |
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.
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.
Oh yes I will look into this. I even have read this Issue but than still copied the old config without thinking 😅
5cb47f2 to
71a5616
Compare
71a5616 to
ef80f9b
Compare
|
Like this, it should now call the cmd with the root_dir as before. |
|
Thanks! |
nvim-lspconfig currently doesn't support leanls via the new API, although this is fixed upstream we don't have the fix in our pinned nixpkgs yet. Upstream PR: neovim/nvim-lspconfig#4084
nvim-lspconfig currently doesn't support leanls via the new API, although this is fixed upstream we don't have the fix in our pinned nixpkgs yet. Upstream PR: neovim/nvim-lspconfig#4084
I have no experience with the lspconfigs, but I saw that the
leanls.luawas the only one missing inlsp/compared tolua/lspconfig/configs/. I simply copied the old settings and migrated them.This is related to the Issue 427 the lean.nvim repo. I will also write a PR that changes the use of the old
require('lspconfig').leanlstovim.lsp.enableandvim.lsp.configbut this will only work once theleanls.luais inlsp/I tested this PR with an updated
lean.nvimplugin already usingvim.lsp.enableandvim.lsp.congigand it seems to work.