lsp-timeout-demo.mov
Nvim plugin for nvim-lspconfig: stop idle servers & restart upon focus; keep your RAM usage low
Some LSP servers are terribly inefficient at memory management and can easily take up gigabytes of RAM MBs if left unattended (just like VS Code huh?!). This plugin prevents excessive memory usage by stopping and restarting LSP servers automatically upon gaining or loosing window focus, keeping neovim fast.
- Stop & start LSP servers upon demand
- Lower RAM usage by unsed Neovim system window
require("lazy").setup(
{
"hinell/lsp-timeout.nvim",
dependencies={ "neovim/nvim-lspconfig" }
}
)
-- $HOME/.config/nvim/lua/user/init.lua
packer.setup(function(use)
use({
"hinell/lsp-timeout.nvim",
requires={ "neovim/nvim-lspconfig" }
})
end)
Plug "hinell/lsp-timeout.nvim"
NO GUARANTEES UNTIL PAID. This project is supported and provided AS IS. See also LICENSE.
September 26, 2023
Copyright © - Alexander Davronov (a.k.a Hinell), et.al.