aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-lsp-installer/core/ui/display.lua1
-rw-r--r--tests/core/ui_spec.lua3
2 files changed, 3 insertions, 1 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 = {
diff --git a/tests/core/ui_spec.lua b/tests/core/ui_spec.lua
index 1ca2f4c7..c591a66d 100644
--- a/tests/core/ui_spec.lua
+++ b/tests/core/ui_spec.lua
@@ -194,7 +194,7 @@ describe("integration test", function()
assert.spy(win_set_option).was_called_with(match.is_number(), "colorcolumn", "")
assert.spy(win_set_option).was_called_with(match.is_number(), "cursorline", true)
- assert.spy(buf_set_option).was_called(9)
+ assert.spy(buf_set_option).was_called(10)
assert.spy(buf_set_option).was_called_with(match.is_number(), "modifiable", false)
assert.spy(buf_set_option).was_called_with(match.is_number(), "swapfile", false)
assert.spy(buf_set_option).was_called_with(match.is_number(), "textwidth", 0)
@@ -202,6 +202,7 @@ describe("integration test", function()
assert.spy(buf_set_option).was_called_with(match.is_number(), "bufhidden", "wipe")
assert.spy(buf_set_option).was_called_with(match.is_number(), "buflisted", false)
assert.spy(buf_set_option).was_called_with(match.is_number(), "filetype", "lsp-installer")
+ assert.spy(buf_set_option).was_called_with(match.is_number(), "undolevels", -1)
assert.spy(set_lines).was_called(1)
assert.spy(set_lines).was_called_with(