Skip to content

Commit

Permalink
add option to allow user to configure floating window
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewsia98 committed Mar 23, 2023
1 parent e799be7 commit 58d7776
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jupynium/lua/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ function Jupynium_kernel_hover(bufnr)
table.insert(lines, line)
end

vim.lsp.util.open_floating_preview(lines, "markdown", {
max_width = 84,
})
local default_opts = { max_width = 84 }
local opts = vim.tbl_extend("force", default_opts, require("jupynium.options").opts.win_options)
vim.lsp.util.open_floating_preview(lines, "markdown", opts)
end

local function get_memory_addr(t)
Expand Down

0 comments on commit 58d7776

Please sign in to comment.