Fix border width calculation

This commit is contained in:
hrsh7th
2022-07-21 00:20:20 +09:00
parent 9897465a76
commit c4dcb1244a

View File

@@ -50,7 +50,7 @@ docs_view.open = function(self, e, view)
vim.api.nvim_buf_set_lines(self.window:get_buffer(), 0, -1, false, {}) vim.api.nvim_buf_set_lines(self.window:get_buffer(), 0, -1, false, {})
end) end)
vim.lsp.util.stylize_markdown(self.window:get_buffer(), documents, { vim.lsp.util.stylize_markdown(self.window:get_buffer(), documents, {
max_width = max_width, max_width = max_width - border_info.horiz,
max_height = documentation.max_height, max_height = documentation.max_height,
}) })
end end