-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Performance tips? #185
Comments
I don't think its possible to disable all ElixirLS features except for completion, so if you plan to use both, you will get double diagnostics.
this seems strange, and i would not expect this to happen. Can you reproduce with a clean config and only elixir-tools.nvim? |
@mhanberg I do this with my Python {
"neovim/nvim-lspconfig",
opts = {
setup = {
ruff_lsp = function()
require("lazyvim.util").lsp.on_attach(function(client, _)
if client.name == "ruff_lsp" then
-- Disable hover in favor of pyright
client.server_capabilities.hoverProvider = false
end
end)
end,
},
},
}, Is that the way I can disable the diagnostics only for elixirls? I see if I can do the simple reproduction, but sadly this only happens in the project I work on when the file is over 500 lines of code in this big project I cannot share... |
hmm, that might work actually. I originally thought you might want to disable the client capabilities, but that relies on the server respecting them. but if you trick neovim into thinking the server doesn't support them, that could work.
this tends to be the case, and unfortunately if you can't reproduce it without sharing your code (not that i expect you to!), the chances of me being able to reproduce are low haha |
Hi,
I wonder if anyone can help me make ElixirLS or NextLS perform faster on my very big project, ideally I would like to use ElixirLS only for autocomplete and NextLS for everything else. Here's my config (that works on LazyVim):
It's unbearably slow in my system (a 2021 16GB laptop), for some reason moving from insert mode to normal mode when ElixirLS is enabled is very slow, after save is understandable since mix itself is slow on big projects. Sometimes it also takes a fairly long time to open any file...
I'm on neovim NVIM v0.10.0-dev-582d7f4 but it's also very slow on NVIM v0.9.4
I also have treesitter disabled to help this work faster.
The text was updated successfully, but these errors were encountered: