diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-07-21 19:50:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 19:50:33 +0200 |
commit | b059fb5c677ccc42104bd1a55ccb770186f4cc44 (patch) | |
tree | a0a2554f96a8d364ed094b150625fd840cd70949 /runtime/lua/vim/lsp/util.lua | |
parent | a6917f840d8609ca5dd0d52977b0e9c5d2a07a68 (diff) | |
parent | fd6361278b79bb3ce9462dcedd0689ad9accd66c (diff) | |
download | rneovim-b059fb5c677ccc42104bd1a55ccb770186f4cc44.tar.gz rneovim-b059fb5c677ccc42104bd1a55ccb770186f4cc44.tar.bz2 rneovim-b059fb5c677ccc42104bd1a55ccb770186f4cc44.zip |
Merge pull request #12654 from cbarrete/nomodifiable-hover
LSP: make the hover window nomodifiable
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 52a6fe89f3..5a68138f1e 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -735,6 +735,7 @@ function M.fancy_floating_markdown(contents, opts) local bufnr = api.nvim_create_buf(false, true) local winnr = api.nvim_open_win(bufnr, false, M.make_floating_popup_options(width, height, opts)) vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, stripped) + api.nvim_buf_set_option(bufnr, 'modifiable', false) -- Switch to the floating window to apply the syntax highlighting. -- This is because the syntax command doesn't accept a target. |