Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cursor layout #878

Merged
merged 18 commits into from
Jul 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix issues related with neovim and plugin api changes
  • Loading branch information
Luxed committed May 31, 2021
commit a85466024b85d3efdf4094a451d7012665b3b709
4 changes: 2 additions & 2 deletions lua/telescope/pickers/layout_strategies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ end
--- (█: when there is no space available)
--- </pre>
layout_strategies.cursor = function(self, columns, lines)
local initial_options = self:_get_initial_window_options()
local initial_options = p_window.get_initial_window_options(self)
local preview = initial_options.preview
local results = initial_options.results
local prompt = initial_options.prompt
Expand Down Expand Up @@ -294,7 +294,7 @@ layout_strategies.cursor = function(self, columns, lines)
local total_height = preview.height + (bs*2)
local total_width = prompt.width + (bs*2) + preview.width + bs

local position = vim.fn.nvim_win_get_position(0)
local position = vim.api.nvim_win_get_position(0)
local top_left = {
line = vim.fn.winline() + position[1] + bs,
col = vim.fn.wincol() + position[2]
Expand Down