Skip to content

Commit

Permalink
Merge pull request neovim#12654 from cbarrete/nomodifiable-hover
Browse files Browse the repository at this point in the history
LSP: make the hover window nomodifiable
  • Loading branch information
teto committed Jul 21, 2020
2 parents a6917f8 + fd63612 commit b059fb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/lua/vim/lsp/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b059fb5

Please sign in to comment.