From 4dfe6a5d5dfb7e76d22e59eca510dacb91116945 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 25 May 2022 05:03:39 +0200 Subject: fix(ui): setlocal undolevels=-1 Without having profiled things, this should greatly reduce memory footprint because this UI buffer is: 1) updated very frequently 2) the way it's currently updated is extremely inefficient (it essentially recreates the buffer contents on every render) --- lua/nvim-lsp-installer/core/ui/display.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') diff --git a/lua/nvim-lsp-installer/core/ui/display.lua b/lua/nvim-lsp-installer/core/ui/display.lua index 10fe1e45..c80738cd 100644 --- a/lua/nvim-lsp-installer/core/ui/display.lua +++ b/lua/nvim-lsp-installer/core/ui/display.lua @@ -317,6 +317,7 @@ function M.new_view_only_win(name) bufhidden = "wipe", buflisted = false, filetype = "lsp-installer", + undolevels = -1 } local win_opts = { -- cgit v1.2.3-70-g09d2