From 8bb2c3087a228de0aa95a6d19ae61d93ffe70f62 Mon Sep 17 00:00:00 2001 From: Cédric Barreteau <> Date: Fri, 17 Jul 2020 20:51:51 +0200 Subject: LSP: make the hover window nomodifiable --- runtime/lua/vim/lsp/util.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 52a6fe89f3..cf084dc060 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -594,6 +594,7 @@ function M.focusable_float(unique_name, fn) if win then api.nvim_set_current_win(win) api.nvim_command("stopinsert") + api.nvim_buf_set_option(0, 'modifiable', false) return end end -- cgit