aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-25 05:03:39 +0200
committerWilliam Boman <william@redwill.se>2022-05-25 14:18:24 +0200
commit4dfe6a5d5dfb7e76d22e59eca510dacb91116945 (patch)
treed5bf3a020004742e27ee7855720f466965f27802 /lua
parentchore(issue_template): add sections for :LspLog (#718) (diff)
downloadmason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.tar
mason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.tar.gz
mason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.tar.bz2
mason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.tar.lz
mason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.tar.xz
mason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.tar.zst
mason-4dfe6a5d5dfb7e76d22e59eca510dacb91116945.zip
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)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/core/ui/display.lua1
1 files changed, 1 insertions, 0 deletions
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 = {