diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-07-12 15:47:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 15:47:39 +0200 |
| commit | 5acb9474a09966c03c0c2541f0d48367d5532029 (patch) | |
| tree | 28f51516db43a5fc563e0b899289b59fe94a0501 | |
| parent | 5f253751916664caa15d9d6de8325e796db72686 (diff) | |
fix: cursor theme for nvim 0.7 (#2069)
| -rw-r--r-- | lua/telescope/pickers/layout_strategies.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/telescope/pickers/layout_strategies.lua b/lua/telescope/pickers/layout_strategies.lua index 6e09c64..7af7761 100644 --- a/lua/telescope/pickers/layout_strategies.lua +++ b/lua/telescope/pickers/layout_strategies.lua @@ -600,7 +600,12 @@ layout_strategies.cursor = make_documented_layout( end local position = vim.api.nvim_win_get_position(0) - local winbar = vim.o.winbar == "" and 0 or 1 + local winbar = (function() + if vim.fn.exists "&winbar" == 1 then + return vim.o.winbar == "" and 0 or 1 + end + return 0 + end)() local top_left = { line = vim.fn.winline() + position[1] + bs + winbar, col = vim.fn.wincol() + position[2], |
