Open MangoIV opened 4 months ago
Seems likely something is attaching to a buffer and not detaching, or else is attaching without checking the filetype.
It'd be helpful to include steps to reproduce this.
(And PR welcome of course, otherwise someone'll get to it at some point).
Hi! Thank you for taking the time to have a look at this. In my init.lua
I have the following pieces of configuration that influence the behaviour of the lean language server:
vim.api.nvim_create_autocmd("VimResized", { callback = require("lean.infoview").reposition })
require("lean").setup({
lsp = {
capabilities = capabilities_def,
},
mappings = true,
abbreviations = {
builtin = true,
enable = true,
leader = ",",
},
})
I have looked a the README and the VimResized
part doesn't appear anymore, could it cause it? Can I remove it? If not, I would say, this should happen anywhere, it definitely happens on multiple language servers. I normally set them up with nvim-lspconfig
but there's also some that I do not, like rust and haskell.
it goes on like this. I think the plugin should not do anything when the user is not viewing a lean file.