mirror of
https://github.com/neovim/neovim.git
synced 2025-11-04 01:34:25 +00:00
LSP: make the hover window nomodifiable
This commit is contained in:
@@ -594,6 +594,7 @@ function M.focusable_float(unique_name, fn)
|
|||||||
if win then
|
if win then
|
||||||
api.nvim_set_current_win(win)
|
api.nvim_set_current_win(win)
|
||||||
api.nvim_command("stopinsert")
|
api.nvim_command("stopinsert")
|
||||||
|
api.nvim_buf_set_option(0, 'modifiable', false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user